Class MatrixObservations
java.lang.Object
jwat.MatrixObservations
This class stores all information about observations, variables and bivariate statistics
- Version:
- 1.1
- Author:
- Brambilla Davide, Fumagalli Claudio
-
Constructor Summary
ConstructorsConstructorDescriptionMatrixObservations(Observation[] Matrix, String[] Vname, int[] TipoVar, VariableMapping[] map) Constructor, instantiates a Matrix of observations passing an array of observations, an array of variable's names, an array of variable's types and an array of mapping class for each variable. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTransformation(int varSel, short type) voiddoSampling(int varSel, FilterOnVariable filter) Returns the object of bivariate statistics.Returns the array of original observations.intReturns the number of observations currently used.intReturns the number of observations.intReturns the number of variables.String[]Returns the array of variable's names.Returns the array of variables.voidundoSampling(int varSel) booleanundoTransformation(int varSel)
-
Constructor Details
-
MatrixObservations
public MatrixObservations(Observation[] Matrix, String[] Vname, int[] TipoVar, VariableMapping[] map) throws OutOfMemoryError Constructor, instantiates a Matrix of observations passing an array of observations, an array of variable's names, an array of variable's types and an array of mapping class for each variable.- Parameters:
Matrix- Array of observations.Vname- Varaible's namesTipoVar- Variable's typesmap- array of mapping class for each variable- Throws:
OutOfMemoryError
-
-
Method Details
-
getVariables
-
getNumVariables
public int getNumVariables()Returns the number of variables.- Returns:
- number of variables.
-
getBivStatObj
Returns the object of bivariate statistics.- Returns:
- object of bivariate statistics.
-
getListObs
Returns the array of original observations.- Returns:
- array of original observations.
-
getVariableNames
Returns the array of variable's names.- Returns:
- variable's names.
-
getNumOfObs
public int getNumOfObs()Returns the number of observations currently used.- Returns:
- number of observations currently used.
-
getNumOfOriginalObs
public int getNumOfOriginalObs()Returns the number of observations.- Returns:
- number of observations.
-
applyTransformation
- Throws:
TrasformException
-
undoTransformation
public boolean undoTransformation(int varSel) -
doSampling
-
undoSampling
public void undoSampling(int varSel)
-