Compare Curves#
compare_curves.py#
Measure the distance between fitted and known parameter sets.
usage: compare_curves.py [-h] [--test-sets TEST_SETS]
[--csv-output-path CSV_OUTPUT_PATH]
directory
- directory#
Directory containing fitted parameter CSV files.
- -h, --help#
show this help message and exit
- --test-sets <test_sets>#
Comma-separated list of test sets to score.
- --csv-output-path <csv_output_path>#
Directory where to write output CSV files.
|
Finds x-coordinate of the intersection between the known IV curve and the line segment from the origin to the given point. |
|
Calculates the distance between two points \((x, y)\) and \((x_p, y_p)\) using a scaled Euclidean distance. |
|
Calculates the total score for a given fitted curve. |
|
Calculate score as a sum of absolute relative difference in each parameter |
|
Gets precise voltage and current pairs for the given curve. |
|
Returns a list of valid test set names (excluding file extensions). |
|
Writes a CSV file containing a score for each test case in every test set. |
|
Writes a CSV file containing overall scores for each test set. |