Class CommonDataPreprocessor
- Namespace
- TimeSeriesAnalysis.Dynamic
- Assembly
- TimeSeriesAnalysis.dll
Common logic that is to be shared among PlantSimulator and different Identification algorithms, to choose data points that are to be ignored when either simulating or identifying or both.
public static class CommonDataPreprocessor
- Inheritance
-
CommonDataPreprocessor
- Inherited Members
Methods
ChooseIndicesToIgnore(UnitDataSet, bool, bool)
Looks over UnitDataSet and chooses which indices to ignore
- Tags indices where any of the timeseries in dataSet have value badDataID or is NaN
- if detectFrozenData=true, it will also consider the dataset "frozen" if all tags in dataset retain the exact same value from one data point to the next
public static List<int> ChooseIndicesToIgnore(UnitDataSet dataSet, bool detectBadData = true, bool detectFrozenData = false)
Parameters
dataSetUnitDataSetdetectBadDataboolif set to true, then any time where any input data equals badDataId or NaN is removed
detectFrozenDataboolif set to true, then any time sample where all inputs are empty will be removed
Returns
ChooseIndicesToIgnore(TimeSeriesDataSet, bool, bool)
Looks over dataset and chooses indices to ignore. For best results, only include those time-series that are needed for simulation, remove unused time-series from this dataset.
public static List<int> ChooseIndicesToIgnore(TimeSeriesDataSet dataSet, bool detectBadData = true, bool detectFrozenData = false)
Parameters
dataSetTimeSeriesDataSetdataset to be investigated(if this dataset has IndicesToIgnore set, then they are included in the returned lst)
detectBadDataboolif set to true, then any time where any input data equals badDataId or NaN is removed
detectFrozenDataboolif set to true, all indices where none of the data changes are considered "frozen" (only use when dataset includes measured outputs y with noise)
Returns
CreateTimeSeriesDataSetFromUnitDataSet(UnitDataSet)
Utility function to create a TimeSeriesDataSet from a UnitDataSet
public static TimeSeriesDataSet CreateTimeSeriesDataSetFromUnitDataSet(UnitDataSet dataSet)
Parameters
dataSetUnitDataSet
Returns
CreateUnitDataSetFromTimeSeriesData(TimeSeriesDataSet)
To turn a TimeSeriesDataSet created with sister-method CreateTimeSeriesDataSetFromUnitDataSet back into
a UnitDataSet
public static UnitDataSet CreateUnitDataSetFromTimeSeriesData(TimeSeriesDataSet tsDataSet)
Parameters
tsDataSetTimeSeriesDataSeta TimeSeriesDataSet crated with
CreateTimeSeriesDataSetFromUnitDataSet