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

Vector of double numbers with some utilities. More...

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

List of all members.

Public Member Functions

 DoubleVector ()
 DoubleVector (double[] toCopy)
 DoubleVector (DoubleVector toCopy)
int numValues ()
void setValue (int i, double v)
void addToValue (int i, double v)
void addValues (DoubleVector toAdd)
void addValues (double[] toAdd)
void subtractValues (DoubleVector toSubtract)
void subtractValues (double[] toSubtract)
void addToValues (double toAdd)
void scaleValues (double multiplier)
double getValue (int i)
double sumOfValues ()
int maxIndex ()
void normalize ()
int numNonZeroEntries ()
double minWeight ()
double[] getArrayCopy ()
double[] getArrayRef ()
void getSingleLineDescription (StringBuilder out)
void getSingleLineDescription (StringBuilder out, int numValues)
void getDescription (StringBuilder sb, int indent)
 Returns a string representation of this object.

Protected Member Functions

void setArrayLength (int l)

Protected Attributes

double[] array

Detailed Description

Vector of double numbers with some utilities.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 30 of file core/DoubleVector.java.


Constructor & Destructor Documentation

moa.core.DoubleVector.DoubleVector ( )

Definition at line 36 of file core/DoubleVector.java.

moa.core.DoubleVector.DoubleVector ( double[]  toCopy)

Definition at line 40 of file core/DoubleVector.java.

moa.core.DoubleVector.DoubleVector ( DoubleVector  toCopy)

Definition at line 45 of file core/DoubleVector.java.

Here is the call graph for this function:


Member Function Documentation

void moa.core.DoubleVector.addToValues ( double  toAdd)

Definition at line 93 of file core/DoubleVector.java.

void moa.core.DoubleVector.addValues ( double[]  toAdd)

Definition at line 71 of file core/DoubleVector.java.

Here is the call graph for this function:

double [] moa.core.DoubleVector.getArrayRef ( )
void moa.core.DoubleVector.getDescription ( StringBuilder  sb,
int  indent 
)

Returns a string representation of this object.

Used in AbstractMOAObject.toString to give a string representation of the object.

Parameters:
sbthe stringbuilder to add the description
indentthe number of characters to indent

Implements moa.MOAObject.

Definition at line 191 of file core/DoubleVector.java.

Here is the call graph for this function:

void moa.core.DoubleVector.getSingleLineDescription ( StringBuilder  out,
int  numValues 
)

Definition at line 179 of file core/DoubleVector.java.

Here is the call graph for this function:

void moa.core.DoubleVector.getSingleLineDescription ( StringBuilder  out)

Definition at line 175 of file core/DoubleVector.java.

Referenced by moa.core.DoubleVector.getDescription().

Here is the call graph for this function:

Here is the caller graph for this function:

int moa.core.DoubleVector.maxIndex ( )

Definition at line 118 of file core/DoubleVector.java.

Referenced by moa.classifiers.functions.MajorityClass.getModelDescription().

Here is the caller graph for this function:

double moa.core.DoubleVector.minWeight ( )

Definition at line 142 of file core/DoubleVector.java.

int moa.core.DoubleVector.numNonZeroEntries ( )

Definition at line 132 of file core/DoubleVector.java.

Referenced by moa.streams.filters.AddNoiseFilter.nextInstance().

Here is the caller graph for this function:

void moa.core.DoubleVector.setArrayLength ( int  l) [protected]
void moa.core.DoubleVector.setValue ( int  i,
double  v 
)

Definition at line 53 of file core/DoubleVector.java.

Referenced by moa.evaluation.LearningCurve.insertEntry(), and moa.classifiers.core.attributeclassobservers.GaussianNumericAttributeClassObserver.observeAttributeClass().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.core.DoubleVector.subtractValues ( double[]  toSubtract)

Definition at line 84 of file core/DoubleVector.java.

Here is the call graph for this function:


Member Data Documentation


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