Class FitScoreCalculator
Calculates a percentage score of maximum 100% that indicates the match between measurement and simulation for a plant that may consist of several unit models and several siginals to be matched, and may include closed-loops.
Inherited Members
Namespace: TimeSeriesAnalysis
Assembly: TimeSeriesAnalysis.dll
Syntax
public class FitScoreCalculator
Methods
| Edit this page View SourceCalc(double[], double[], double, List<int>, int)
Calculate a "fit score" between two signals.
Declaration
public static double Calc(double[] meas, double[] sim, double badDataID, List<int> indToIgnore = null, int initialIndicesToIgnore = 2)
Parameters
| Type | Name | Description |
|---|---|---|
| double[] | meas | |
| double[] | sim | |
| double | badDataID | a special value that indicates not-a-number in the data |
| List<int> | indToIgnore | |
| int | initialIndicesToIgnore | ignore inital number of indices in meas and sim |
Returns
| Type | Description |
|---|---|
| double | a fit score that is maximum 100 percent, but can also go negative if fit is poor |
GetPlantWideSimulated(PlantSimulator, TimeSeriesDataSet, TimeSeriesDataSet, List<int>)
Determines a score for how well a simulation fits with inputData. This can be compared over time to see any signs of degredation of the plant over time
Declaration
public static double GetPlantWideSimulated(PlantSimulator plantSimObj, TimeSeriesDataSet inputData, TimeSeriesDataSet simData, List<int> indToIgnore = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PlantSimulator | plantSimObj | |
| TimeSeriesDataSet | inputData | |
| TimeSeriesDataSet | simData | |
| List<int> | indToIgnore | optional list of indices to be ignored |
Returns
| Type | Description |
|---|---|
| double |
GetPlantWideStored(PlantSimulator)
Get the average stored fit-scores in the "paramters.Fitting" object, indicating how well the plant on average described/aligned with the dataset when it was fitted.
Declaration
public static double GetPlantWideStored(PlantSimulator plantSimObj)
Parameters
| Type | Name | Description |
|---|---|---|
| PlantSimulator | plantSimObj |
Returns
| Type | Description |
|---|---|
| double |