/** * <summary> Constructor for normalize feature filter. It calculates and stores the mean (m) and standard deviation (s) of * the sample.</summary> * * <param name="dataSet">Instances whose continuous attribute values will be normalized.</param> */ public Normalize(DataSet.DataSet dataSet) : base(dataSet) { _averageInstance = dataSet.GetInstanceList().Average(); _standardDeviationInstance = dataSet.GetInstanceList().StandardDeviation(); }
/** * <summary> Constructor that sets the dataSet and all the attributes distributions.</summary> * * <param name="dataSet">DataSet that will be used.</param> */ public LaryFilter(DataSet.DataSet dataSet) : base(dataSet) { attributeDistributions = dataSet.GetInstanceList().AllAttributesDistribution(); }