|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDData
de.unihalle.informatik.Alida.demo.ExperimentalData
@ALDParametrizedClass public class ExperimentalData
This class is a toy implementation of experimental data for a demo of Alida's parametrized classes. The complete experiment consists of a number of repetitions of sub experiments. In each of these the same features (measurements) are recorded.
The measurements a represented in a 2D array of Doubles, where each row represents one sub experiment and the rows the distinct features.
Constructor Summary | |
---|---|
ExperimentalData()
Standard constructor is required |
|
ExperimentalData(java.lang.String description,
java.lang.Double[][] data)
Constructor for an experiment. |
|
ExperimentalData(java.lang.String description,
java.lang.Double[][] data,
boolean normalized)
Constructor for an experiment. |
Method Summary | |
---|---|
java.lang.Double[][] |
getData()
Return the data |
java.lang.String |
getDescription()
Get description. |
java.lang.Double[] |
getFeature(int i)
Return the i-th feature across all sub experiments. |
int |
getNumExperiments()
Return number of sub experiments |
int |
getNumFeatures()
Return number of features |
java.lang.Double[] |
getSubExperiment(int n)
|
boolean |
isNormalized()
Query if data are normalized to zero mean within each feature. |
void |
print()
Print this data object to standard out |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDData |
---|
cloneProperties, getLocation, getProperty, getPropertyKeys, setLocation, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExperimentalData()
public ExperimentalData(java.lang.String description, java.lang.Double[][] data)
description
- a textual description of the experimentdata
- measurementspublic ExperimentalData(java.lang.String description, java.lang.Double[][] data, boolean normalized)
description
- a textual description of the experimentdata
- measurementsnormalized
- true if the data are normalizedMethod Detail |
---|
public void print()
ALDData
print
in class ALDData
public int getNumExperiments()
public int getNumFeatures()
public java.lang.Double[] getFeature(int i)
i
-
i is out of bounds
public java.lang.Double[] getSubExperiment(int n)
public java.lang.Double[][] getData()
public java.lang.String getDescription()
public boolean isNormalized()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |