|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.Context
public class Context
The Context object mantains the execution context of an identification process. That's the current alive test and taxa (that haven't been discarded till the moment) and info about realized Test.
Field Summary | |
---|---|
boolean[] |
taxa_live
Bitmap of undiscarded taxa |
float[] |
taxa_prob
Mantains the current probability of all taxa to be the unkwnown |
boolean[] |
test_done
Bitmap of done tests |
int[] |
test_resu
Mantains at the pos "i" the results of the test "i". |
int[] |
test_sepa
Mantains at the pos "i" the number of separated taxa by the "i" test. |
float[] |
test_valu
Mantains the goodness of the test "i" |
Constructor Summary | |
---|---|
private |
Context()
Private null contstructor |
|
Context(Matrix m)
Creates an empty context for the given matrix |
|
Context(Matrix m,
int[] testResRef)
Creates an initial context from probability matrix. |
Method Summary | |
---|---|
protected Context |
clone()
|
int |
getBestTaxaIndex()
Returns the taxon with the best probability (any of them, in case of tie) |
int[][] |
getIncoValues(Matrix m,
Configuration c)
Return the set of done tests that give an unexpected result for the best taxon founded till this moment A test is unexpected only if it has non-variable probabilities and signal opposite results have been supplied |
int[] |
sortTaxaByProb()
Returns the ordered array by descendent probabilities (higest probabilities at the lower array indexes) |
int[] |
sortTestByVal(int[] arr)
Given a set of test indexes return the same set sorted by the goodness of the test |
Context[] |
splitContex(int testId,
Matrix m,
Configuration cnf)
Separates the current context in two others, discriminating one from each other using their estimation on the test result with especified identificator |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean[] test_done
public int[] test_sepa
public int[] test_resu
public float[] test_valu
public float[] taxa_prob
public boolean[] taxa_live
Constructor Detail |
---|
private Context()
public Context(Matrix m, int[] testResRef)
m
- Reference MatrixtestResRef
- Workspace result array, passed as implicit pointerpublic Context(Matrix m)
m
- Reference MatrixMethod Detail |
---|
public Context[] splitContex(int testId, Matrix m, Configuration cnf) throws DataException
testId
-
DataException
public int[] sortTaxaByProb()
public int getBestTaxaIndex()
public int[] sortTestByVal(int[] arr)
arr
- Test indexes set
public int[][] getIncoValues(Matrix m, Configuration c)
m
- Reference matrix
protected Context clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |