|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij3d.utils.TabUtil
public class TabUtil
classe permettant :
le stockage d'un tableau de float les calculs statistiques sur ce tableau le
tri du tableau
Constructor Summary | |
---|---|
TabUtil(float[] data)
constructeur |
|
TabUtil(int size)
constructeur |
Method Summary | |
---|---|
boolean |
addValue(int position,
float value)
Adds a value at a index |
void |
concat(TabUtil tabToAdd)
concat an array to the end |
boolean |
contient(int val)
Le tableau contient-il cette valeur |
boolean |
contientQue(int val)
test if array has only a particular value |
float |
convolve(float[] kernel,
float D)
Convolution with a kernel |
TabUtil |
distinctValues()
|
void |
draw(int scale)
drawing of the array as an image |
static double[] |
fitGaussian(double[] values,
int maxR)
|
float[] |
getArray()
Gets the array attribute of the TabUtil object |
TabUtil |
getCopy()
Gets the copy attribute of the TabUtil object |
int |
getLimitInf(int th)
Gets the index of the first non zero value |
int |
getLimitSup()
Dernier indice de valeur non nulle |
float |
getMaximum()
recupere la valeur maximum du tableau |
float |
getMean()
calcule la moyenne du tableau |
float |
getMinimum()
recupere la valeur minimum |
float |
getMinimumAbove(float th)
Gets the minimum value above a threshold |
float |
getSigma()
calcul l'ecart-type du tableau |
int |
getSize()
recupere la taille du tableau |
TabUtil |
getSubTabUtil(int startindex,
int newsize)
extract a sub-array from this array |
float |
getSum()
calcule la somme du tableau |
float |
getValue(int position)
recupere la valeur d'une position donnee |
float |
getVariance()
|
int |
indexOfSumPercent(double percent)
calcul l'index du tableau correspondant au pourcentage donne il calcule le total des valeurs ensuite il additionne au fur et a mesure et compare à percent*total si la somme est superieure il retourne l'index ou il est. |
boolean |
isEqual(TabUtil other)
test if two arrays are identical |
boolean |
isEqual(TabUtil other,
int begin,
int end)
test if two arrays are identical between two indexes |
TabUtil |
lissage(int vois)
lisse le tableau selon un voisinage (le tableau lui-meme n'est pas modifie) |
float |
median()
Find median. |
float |
median2()
recupere la valeur mediane du tableau |
void |
melange()
random mix of the values |
int |
moyenneIntermediaire()
isodata algorithm (for histogram) |
boolean |
putValue(int position,
float value)
met une valeur a la position donnee |
void |
putValues(TabUtil tmp)
put values inside an array |
void |
removeValueAt(int index)
remove a value at a position |
void |
setSize(int size)
impose une nouvelle taille au tableau |
void |
sort()
trie le tableau selon l'algorithme Shell-Meitzner |
int[] |
sortIndex()
trie le tableau selon l'algorithme Shell-Meitzner |
java.lang.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 TabUtil(int size)
size
- taille du tableaupublic TabUtil(float[] data)
data
- tableau de floatMethod Detail |
---|
public boolean putValue(int position, float value)
position
- position dans le tableauvalue
- valeur a mettre
public float getValue(int position)
position
- position dont on veut recuperer la valeur
public int getSize()
public float[] getArray()
public void setSize(int size)
size
- The new size valuepublic float getMaximum()
public int getLimitSup()
public int getLimitInf(int th)
th
- minimum index
public float getMinimum()
public float getMinimumAbove(float th)
th
- the threshold
public float getMean()
public float getSum()
public float getSigma()
public float getVariance()
public TabUtil distinctValues()
public TabUtil lissage(int vois)
vois
- voisinage de lissage
public boolean addValue(int position, float value)
position
- the position indexvalue
- the value to add
public void sort()
public int[] sortIndex()
public float median2()
public float median()
public float convolve(float[] kernel, float D)
kernel
- the kernelD
- the divisor
public int indexOfSumPercent(double percent)
percent
- pourcentage voulu (100%=1.0 ; 50%=0.5....)
public boolean contient(int val)
val
- valeur
public boolean contientQue(int val)
val
- the value
public int moyenneIntermediaire()
public void draw(int scale)
scale
- scale valuepublic void melange()
public void putValues(TabUtil tmp)
tmp
- the array of values to putpublic boolean isEqual(TabUtil other)
other
- the other array
public boolean isEqual(TabUtil other, int begin, int end)
other
- the other arraybegin
- start indexend
- end index
public TabUtil getCopy()
public java.lang.String toString()
toString
in class java.lang.Object
public void removeValueAt(int index)
index
- the position indexpublic void concat(TabUtil tabToAdd)
tabToAdd
- the array to concatpublic TabUtil getSubTabUtil(int startindex, int newsize)
startindex
- start indexnewsize
- new size
public static double[] fitGaussian(double[] values, int maxR)
values
- maxR
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |