Package qmwi.kseg.som
Class CSV_SOM_dataEntry
java.lang.Object
qmwi.kseg.som.CSV_SOM_dataEntry
- All Implemented Interfaces:
SOMdataEntry
public class CSV_SOM_dataEntry extends Object implements SOMdataEntry
-
Constructor Summary
Constructors Constructor Description CSV_SOM_dataEntry(int size)
CSV_SOM_dataEntry(int columnCount, Object userData)
-
Method Summary
Modifier and Type Method Description SOMdataEntry
addValues(String inputLine)
SOMdataEntry
addValues(String inputLine, boolean normalized)
String[]
getColumnData()
String
getColumnData(int i)
ArrayList<Double>
getDifferencesToCentroids()
double
getMinDiff()
Object
getUserData()
boolean
isAlreadyNormalized()
void
setDifferences(ArrayList<Double> differences)
void
setUserData(Object data)
String
toString()
-
Constructor Details
-
CSV_SOM_dataEntry
public CSV_SOM_dataEntry(int size) -
CSV_SOM_dataEntry
- Parameters:
columnCount
-n
-
-
-
Method Details
-
toString
-
getColumnData
- Specified by:
getColumnData
in interfaceSOMdataEntry
-
getUserData
- Specified by:
getUserData
in interfaceSOMdataEntry
-
setUserData
- Specified by:
setUserData
in interfaceSOMdataEntry
-
addValues
- Specified by:
addValues
in interfaceSOMdataEntry
-
addValues
- Specified by:
addValues
in interfaceSOMdataEntry
-
getColumnData
- Specified by:
getColumnData
in interfaceSOMdataEntry
-
isAlreadyNormalized
public boolean isAlreadyNormalized()- Specified by:
isAlreadyNormalized
in interfaceSOMdataEntry
- Returns:
- True, if the supplied data is already normalized in the range of -1..1. If this value is False, The SOM train and recall method will normalize the data column wise! This means, e.g. all values for time point 1 will be collected and then normalized, thus from day to day a different normalization is performed. This is useful while analyzing independent data points. For time series data this is clearly not a good idea, in this case the data should be supplied normalized and this flag should return true.
-
getDifferencesToCentroids
- Specified by:
getDifferencesToCentroids
in interfaceSOMdataEntry
-
setDifferences
- Specified by:
setDifferences
in interfaceSOMdataEntry
-
getMinDiff
public double getMinDiff()- Specified by:
getMinDiff
in interfaceSOMdataEntry
-