Class FitScoreCalculator
- Namespace
- TimeSeriesAnalysis
- Assembly
- TimeSeriesAnalysis.dll
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.
public class FitScoreCalculator
- Inheritance
-
FitScoreCalculator
- Inherited Members
Methods
Calc(double[], double[], double, List<int>, int)
Calculate a "fit score" between two signals.
public static double Calc(double[] meas, double[] sim, double badDataID, List<int> indToIgnore = null, int initialIndicesToIgnore = 2)
Parameters
measdouble[]simdouble[]badDataIDdoublea special value that indicates not-a-number in the data
indToIgnoreList<int>initialIndicesToIgnoreintignore inital number of indices in meas and sim
Returns
- 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
public static double GetPlantWideSimulated(PlantSimulator plantSimObj, TimeSeriesDataSet inputData, TimeSeriesDataSet simData, List<int> indToIgnore = null)
Parameters
plantSimObjPlantSimulatorinputDataTimeSeriesDataSetsimDataTimeSeriesDataSetindToIgnoreList<int>optional list of indices to be ignored
Returns
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.
public static double GetPlantWideStored(PlantSimulator plantSimObj)
Parameters
plantSimObjPlantSimulator