de.unihalle.informatik.Alida.demo
Class CopyOfExperimentalData

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDData
      extended by de.unihalle.informatik.Alida.demo.CopyOfExperimentalData

@ALDParametrizedClass
public class CopyOfExperimentalData
extends ALDData

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.

Author:
posch

Field Summary
private  java.lang.Double data
          The data
private  java.lang.String description
           
private  java.lang.Boolean normalized
          Are the data normalized to zero mean within each feature?
 
Constructor Summary
CopyOfExperimentalData()
          Standard constructor is required
CopyOfExperimentalData(java.lang.String description, java.lang.Double data)
          Constructor for an experiment.
CopyOfExperimentalData(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.
 boolean isNormalized()
          Query if data are normalized to zero mean within each feature.
 void print()
          Print this data object to standard out
private  void setData(java.lang.Double data, boolean normalized)
          Set the data
 
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
 

Field Detail

data

@ALDClassParameter(label="data")
private java.lang.Double data
The data


description

@ALDClassParameter(label="description")
private java.lang.String description

normalized

@ALDClassParameter(label="Is normalized")
private java.lang.Boolean normalized
Are the data normalized to zero mean within each feature?

Constructor Detail

CopyOfExperimentalData

public CopyOfExperimentalData()
Standard constructor is required


CopyOfExperimentalData

public CopyOfExperimentalData(java.lang.String description,
                              java.lang.Double data)
Constructor for an experiment. Normalized is assumed to be false.

Parameters:
description - a textual description of the experiment
data - measurements

CopyOfExperimentalData

public CopyOfExperimentalData(java.lang.String description,
                              java.lang.Double data,
                              boolean normalized)
Constructor for an experiment.

Parameters:
description - a textual description of the experiment
data - measurements
normalized - true if the data are normalized
Method Detail

getData

public java.lang.Double getData()
Return the data

Returns:
data matrix

getDescription

public java.lang.String getDescription()
Get description.

Returns:
description

isNormalized

public boolean isNormalized()
Query if data are normalized to zero mean within each feature.

Returns:
the normalized

print

public void print()
Description copied from class: ALDData
Print this data object to standard out

Overrides:
print in class ALDData

setData

private void setData(java.lang.Double data,
                     boolean normalized)
Set the data

Parameters:
data - matrix
normalized - are the data normalized?