org.jdmp.core.dataset
Class AbstractDataSet

java.lang.Object
  extended by org.jdmp.core.AbstractCoreObject
      extended by org.jdmp.core.dataset.AbstractDataSet
All Implemented Interfaces:
Serializable, Cloneable, CoreObject, DataSet, HasDataSetList, HasDataSets, HasSampleList, HasSamples, HasVariableMap, HasVariables, Clearable, HasDescription, HasGUIObject, HasLabel
Direct Known Subclasses:
DefaultDataSet

public abstract class AbstractDataSet
extends AbstractCoreObject
implements DataSet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdmp.core.AbstractCoreObject
ALL, COLUMN, logger, ROW, X, Y, Z
 
Fields inherited from interface org.jdmp.core.dataset.DataSet
DESCRIPTION, LABEL
 
Constructor Summary
AbstractDataSet()
           
AbstractDataSet(String label)
           
 
Method Summary
 void clear()
           
abstract  AbstractDataSet clone()
           
 String getAsString(Object variableKey)
           
 ObservableList<DataSet> getDataSets()
           
 String getDescription()
           
 GUIObject getGUIObject()
           
 String getLabel()
           
 Matrix getMatrix(Object variableKey)
           
 ObservableList<Sample> getSamples()
           
 String getString(Object variableKey)
           
 ObservableMap<Variable> getVariables()
           
 void notifyGUIObject()
           
 void setDescription(String description)
           
 void setLabel(String label)
           
 void setMatrix(Object variableKey, Matrix matrix)
           
 void setObject(Object variableKey, Object value)
           
 void setSamples(ObservableList<Sample> samples)
           
 void setVariables(ObservableMap<Variable> variables)
           
 List<DataSet> splitByCount(boolean shuffle, int... count)
           
 List<DataSet> splitByPercent(boolean shuffle, double... percent)
           
 List<DataSet> splitForCV(int numberOfCVSets, int idOfCVSet, long randomSeed)
           
 String toString()
           
 
Methods inherited from class org.jdmp.core.AbstractCoreObject
showGUI
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.interfaces.HasGUIObject
showGUI
 

Constructor Detail

AbstractDataSet

public AbstractDataSet()

AbstractDataSet

public AbstractDataSet(String label)
Method Detail

getDescription

public final String getDescription()
Specified by:
getDescription in interface HasDescription

setDescription

public final void setDescription(String description)
Specified by:
setDescription in interface HasDescription

getLabel

public final String getLabel()
Specified by:
getLabel in interface HasLabel

setLabel

public final void setLabel(String label)
Specified by:
setLabel in interface HasLabel

getString

public final String getString(Object variableKey)

getMatrix

public Matrix getMatrix(Object variableKey)
Specified by:
getMatrix in interface HasVariableMap

getAsString

public final String getAsString(Object variableKey)
Specified by:
getAsString in interface HasVariableMap

setObject

public final void setObject(Object variableKey,
                            Object value)
Specified by:
setObject in interface HasVariableMap

setMatrix

public void setMatrix(Object variableKey,
                      Matrix matrix)
Specified by:
setMatrix in interface HasVariableMap

getSamples

public ObservableList<Sample> getSamples()
Specified by:
getSamples in interface HasSampleList
Specified by:
getSamples in interface HasSamples

getVariables

public final ObservableMap<Variable> getVariables()
Specified by:
getVariables in interface HasVariableMap
Specified by:
getVariables in interface HasVariables

getDataSets

public final ObservableList<DataSet> getDataSets()
Specified by:
getDataSets in interface HasDataSetList
Specified by:
getDataSets in interface HasDataSets

clear

public void clear()
Specified by:
clear in interface Clearable

splitByCount

public List<DataSet> splitByCount(boolean shuffle,
                                  int... count)
Specified by:
splitByCount in interface DataSet

splitForCV

public List<DataSet> splitForCV(int numberOfCVSets,
                                int idOfCVSet,
                                long randomSeed)
Specified by:
splitForCV in interface DataSet

splitByPercent

public List<DataSet> splitByPercent(boolean shuffle,
                                    double... percent)
Specified by:
splitByPercent in interface DataSet

getGUIObject

public final GUIObject getGUIObject()
Specified by:
getGUIObject in interface HasGUIObject

toString

public final String toString()
Specified by:
toString in class AbstractCoreObject

setSamples

public void setSamples(ObservableList<Sample> samples)
Specified by:
setSamples in interface HasSampleList

setVariables

public void setVariables(ObservableMap<Variable> variables)
Specified by:
setVariables in interface HasVariableMap

notifyGUIObject

public void notifyGUIObject()
Specified by:
notifyGUIObject in interface HasGUIObject

clone

public abstract AbstractDataSet clone()
Specified by:
clone in interface DataSet
Overrides:
clone in class Object


Copyright © 2009. All Rights Reserved.