|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.util.classify.stanford.WindowBuffer
public class WindowBuffer
A 2-dimensional buffer which efficiently calculates the column rows/sums during the shift/add operation
| Constructor Summary | |
|---|---|
WindowBuffer(int i,
int j)
A 2-dimensional buffer |
|
| Method Summary | |
|---|---|
void |
add(double[] newValues)
Add a new instance to the buffer. |
void |
add(Double[] newValues)
Add a new instance to the buffer. |
void |
add(List<Double> newValues)
Add a new instance to the buffer. |
void |
clear()
Fill the buffer with zeros |
int[] |
getMaxInds()
|
double[] |
getMaxs()
|
double[] |
getProducts()
|
Integer[][] |
getSortInds()
|
double[] |
getSums()
|
double |
getValue(int i,
int j)
|
int |
length()
|
String |
toString()
|
int |
width()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WindowBuffer(int i,
int j)
i - the length of the buffer (number of rows/stored instances)j - the width of the buffer (number of columns/features per instance)| Method Detail |
|---|
public void clear()
public void add(List<Double> newValues)
newValues - a data list of length ncolumnspublic void add(Double[] newValues)
newValues - a data array of length ncolumnspublic void add(double[] newValues)
newValues - a data array of length ncolumns
public double getValue(int i,
int j)
i - the row (historical data instance, oldest = 0)j - the column (feature)
public double[] getSums()
public double[] getProducts()
public double[] getMaxs()
public int[] getMaxInds()
public Integer[][] getSortInds()
public int length()
public int width()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||