weka.classifiers.trees.m5
Class Values

java.lang.Object
  extended byweka.classifiers.trees.m5.Values

public final class Values
extends java.lang.Object

Stores some statistics.

Version:
$Revision: 1.5 $
Author:
Yong Wang (yongwang@cs.waikato.ac.nz)

Field Summary
(package private)  int attr
           
(package private)  int first
           
(package private)  int last
           
(package private)  int missingInstances
           
(package private)  int numInstances
           
(package private)  double sd
           
(package private)  double sqrSum
           
(package private)  double sum
           
(package private)  double va
           
 
Constructor Summary
Values(int low, int high, int attribute, Instances inst)
          Constructs an object which stores some statistics of the instances such as sum, squared sum, variance, standard deviation
 
Method Summary
 java.lang.String toString()
          Converts the stats to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numInstances

int numInstances

missingInstances

int missingInstances

first

int first

last

int last

attr

int attr

sum

double sum

sqrSum

double sqrSum

va

double va

sd

double sd
Constructor Detail

Values

public Values(int low,
              int high,
              int attribute,
              Instances inst)
Constructs an object which stores some statistics of the instances such as sum, squared sum, variance, standard deviation

Parameters:
low - the index of the first instance
high - the index of the last instance
attribute - the attribute
inst - the instances
Method Detail

toString

public final java.lang.String toString()
Converts the stats to a string

Returns:
the converted string