MOA 12.03
Real Time Analytics for Data Streams
moa.core.InstancesHeader Class Reference

Class for storing the header or context of a data stream. More...

Inheritance diagram for moa.core.InstancesHeader:
Collaboration diagram for moa.core.InstancesHeader:

List of all members.

Public Member Functions

 InstancesHeader (Instances i)
boolean add (Instance i)
boolean readInstance (Reader r) throws IOException

Static Public Member Functions

static String getClassNameString (InstancesHeader context)
static String getClassLabelString (InstancesHeader context, int classLabelIndex)
static String getAttributeNameString (InstancesHeader context, int attIndex)
static String getNominalValueString (InstancesHeader context, int attIndex, int valIndex)
static String getNumericValueString (InstancesHeader context, int attIndex, double value)

Detailed Description

Class for storing the header or context of a data stream.

It allows to know the number of attributes and classes.

Richard Kirkby (

Definition at line 34 of file

Constructor & Destructor Documentation

moa.core.InstancesHeader.InstancesHeader ( Instances  i)

Definition at line 38 of file

Member Function Documentation

boolean moa.core.InstancesHeader.add ( Instance  i)

Definition at line 43 of file

static String moa.core.InstancesHeader.getClassLabelString ( InstancesHeader  context,
int  classLabelIndex 
) [static]

Definition at line 59 of file

Referenced by moa.clusterers.AbstractClusterer.getClassLabelString(), and moa.classifiers.AbstractClassifier.getClassLabelString().

Here is the caller graph for this function:

static String moa.core.InstancesHeader.getClassNameString ( InstancesHeader  context) [static]

Definition at line 52 of file

Referenced by moa.clusterers.AbstractClusterer.getClassNameString(), and moa.classifiers.AbstractClassifier.getClassNameString().

Here is the caller graph for this function:

static String moa.core.InstancesHeader.getNumericValueString ( InstancesHeader  context,
int  attIndex,
double  value 
) [static]

Definition at line 99 of file

Referenced by moa.classifiers.core.conditionaltests.NumericAttributeBinaryTest.describeConditionForBranch().

Here is the caller graph for this function:

boolean moa.core.InstancesHeader.readInstance ( Reader  r) throws IOException

Definition at line 48 of file

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations