Table of Contents

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

dataSet UnitDataSet
detectBadData bool

if set to true, then any time where any input data equals badDataId or NaN is removed

detectFrozenData bool

if set to true, then any time sample where all inputs are empty will be removed

Returns

List<int>

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

dataSet TimeSeriesDataSet

dataset to be investigated(if this dataset has IndicesToIgnore set, then they are included in the returned lst)

detectBadData bool

if set to true, then any time where any input data equals badDataId or NaN is removed

detectFrozenData bool

if 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

List<int>

a sorted list of indices to ignore

CreateTimeSeriesDataSetFromUnitDataSet(UnitDataSet)

Utility function to create a TimeSeriesDataSet from a UnitDataSet

public static TimeSeriesDataSet CreateTimeSeriesDataSetFromUnitDataSet(UnitDataSet dataSet)

Parameters

dataSet UnitDataSet

Returns

TimeSeriesDataSet

CreateUnitDataSetFromTimeSeriesData(TimeSeriesDataSet)

To turn a TimeSeriesDataSet created with sister-method CreateTimeSeriesDataSetFromUnitDataSet back into a UnitDataSet

public static UnitDataSet CreateUnitDataSetFromTimeSeriesData(TimeSeriesDataSet tsDataSet)

Parameters

tsDataSet TimeSeriesDataSet

a TimeSeriesDataSet crated with CreateTimeSeriesDataSetFromUnitDataSet

Returns

UnitDataSet