Class MatrixObservations

java.lang.Object
jwat.MatrixObservations

public class MatrixObservations extends Object
This class stores all information about observations, variables and bivariate statistics
Version:
1.1
Author:
Brambilla Davide, Fumagalli Claudio
  • 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 names
      TipoVar - Variable's types
      map - array of mapping class for each variable
      Throws:
      OutOfMemoryError
  • Method Details

    • getVariables

      public VariableNumber[] getVariables()
      Returns the array of variables.
      Returns:
      Array of variables.
    • getNumVariables

      public int getNumVariables()
      Returns the number of variables.
      Returns:
      number of variables.
    • getBivStatObj

      public StatBivariate getBivStatObj()
      Returns the object of bivariate statistics.
      Returns:
      object of bivariate statistics.
    • getListObs

      public Observation[] getListObs()
      Returns the array of original observations.
      Returns:
      array of original observations.
    • getVariableNames

      public String[] 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

      public void applyTransformation(int varSel, short type) throws TrasformException
      Throws:
      TrasformException
    • undoTransformation

      public boolean undoTransformation(int varSel)
    • doSampling

      public void doSampling(int varSel, FilterOnVariable filter)
    • undoSampling

      public void undoSampling(int varSel)