Table of Contents

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

meas double[]
sim double[]
badDataID double

a special value that indicates not-a-number in the data

indToIgnore List<int>
initialIndicesToIgnore int

ignore 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

plantSimObj PlantSimulator
inputData TimeSeriesDataSet
simData TimeSeriesDataSet
indToIgnore List<int>

optional list of indices to be ignored

Returns

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.

public static double GetPlantWideStored(PlantSimulator plantSimObj)

Parameters

plantSimObj PlantSimulator

Returns

double