File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed
Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1313- `--skip`(`-s`): Skip mismatching data points instead of raising errors.
1414- `--verbose`(`-v`): Verbosity level of t-test result.
1515- `--plot`(`-p`): Plot type and filename.
16- * $ python3 t_test.py file1 file2 -a 0.01 -d 0.04 -s -v 2 -p histogram fig_h.png
16+ * $ python3 run_twosample_ttest.py file1 file2 -a 0.01 -d 0.04 -s -v 2 \
17+ -p histogram fig_h.png
1718 -> Calculate t-statistic with significance level of 0.01 (or 1 %)
1819 for each pair of data in `file1` and file2` that are set to have discrepancy
1920 of 0.04. Skip any mismatching data points. Display the number of pairs that
Original file line number Diff line number Diff line change 8989 - ` --plot ` (` -p ` ): Plot type and filename.
9090- Example:
9191``` shell
92- $ python3 t_test.py file1 file2 -a 0.01 -d 0.04 -s -v 2 -p histogram fig_h.png
92+ $ python3 run_twosample_ttest.py file1 file2 -a 0.01 -d 0.04 -s -v 2
93+ -p histogram fig_h.png
9394```
9495→ Calculate t-statistic with significance level of 0.01 (or 1 %)
9596for each pair of data in ` file1 ` and ` file2 ` that are set to have discrepancy
Original file line number Diff line number Diff line change 5454
5555"""
5656
57- # Third party libraries .
57+ # Third party imports .
5858from matplotlib import colors
5959import matplotlib .pyplot as plt
6060import numpy as np
7676DEFAULT_markersize = 36
7777DEFAULT_cticknum = 6
7878
79+
7980# ---- Customizable data loading/processing and plotting functions ---- #
8081
8182def load_data (filename ):
Original file line number Diff line number Diff line change 1818
1919"""
2020
21+ # Third party imports
2122import pytest
2223
24+ # Local module imports
2325from t_test import twosample_ttest as tt
2426
2527TOL = 1e-5 # Tolerance for approximate assertion.
You can’t perform that action at this time.
0 commit comments