|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.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 indepenent repetitions of sub experiments. In each of these the same features (measurments) are recorded. The measurements a represented in a 2D array of Doubles, where each column represents one sub experiment and the rows the distinct features.
Field Summary | |
---|---|
private java.lang.Double[][] |
data
|
private java.lang.String |
description
|
private boolean |
normalized
are the data normalized |
Constructor Summary | |
---|---|
ExperimentalData()
Standard constructor is needed |
|
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. |
int |
getNumExperiments()
Return number of sub experiments |
int |
getNumFeatures()
Return number of features |
private void |
setData(java.lang.Double[][] data)
Set the data, assumed to be not normalized. |
private void |
setData(java.lang.Double[][] data,
boolean normalized)
Set the data |
private void |
setDescription(java.lang.String description)
Set description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@ALDClassParameter(label="data") private java.lang.Double[][] data
@ALDClassParameter(label="description") private java.lang.String description
@ALDClassParameter(label="Is normalized") private boolean normalized
Constructor Detail |
---|
public ExperimentalData()
public ExperimentalData(java.lang.String description, java.lang.Double[][] data)
description
- a textual desciption of the experimentdata
- measurementspublic ExperimentalData(java.lang.String description, java.lang.Double[][] data, boolean normalized)
description
- a textual desciption of the experimentdata
- measurementsnormalized
- are the data normalizedMethod Detail |
---|
public java.lang.Double[][] getData()
public java.lang.String getDescription()
public int getNumExperiments()
public int getNumFeatures()
private void setData(java.lang.Double[][] data)
data
- matrixprivate void setData(java.lang.Double[][] data, boolean normalized)
data
- matrixnormalized
- are the data normalized?private void setDescription(java.lang.String description)
description
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |