org.encog.util.arrayutil
public class WindowDouble extends Object
Constructor and Description |
---|
WindowDouble(int theSize)
Construct the window.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double[] a)
Add an array to the window.
|
double |
calculateMax(int index,
int starting)
Calculate the max value, for the specified index, over all of the data in
the window.
|
double |
calculateMin(int index,
int starting)
Calculate the max value, for the specified index, over all of the data in
the window.
|
void |
clear()
Clear the contents of the window.
|
double[] |
getLast()
Get the last value from the window.
|
boolean |
isFull() |
public WindowDouble(int theSize)
theSize
- The size of the window.public void add(double[] a)
a
- The array.public void clear()
public boolean isFull()
public double calculateMax(int index, int starting)
index
- The index of the value to compare.starting
- The starting position, inside the window to compare at.public double calculateMin(int index, int starting)
index
- The index of the value to compare.starting
- The starting position, inside the window to compare at.public double[] getLast()
Copyright © 2014. All Rights Reserved.