|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.util.ArrayUtil
public class ArrayUtil
Constructor Summary | |
---|---|
ArrayUtil(float[] data)
constructeur |
|
ArrayUtil(int size)
constructeur |
Method Summary | |
---|---|
double |
getMaximum()
The maximum value |
double |
getMean()
Average value |
double |
getMinimum()
The minimum value |
double |
getVariance()
Variance value |
boolean |
isMaximum(double val)
|
double |
medianSort()
The median (sorted array) |
boolean |
putValue(int pos,
float value)
put a value to a index |
void |
setSize(int si)
|
void |
sort()
|
String |
toString()
information to be displayed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArrayUtil(int size)
size
- number of elementspublic ArrayUtil(float[] data)
data
- float arrayMethod Detail |
---|
public void setSize(int si)
public boolean putValue(int pos, float value)
pos
- position in the arrayvalue
- value to put
public double getMean()
public double medianSort()
public void sort()
public boolean isMaximum(double val)
public double getMinimum()
public double getMaximum()
public double getVariance()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |