|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.Identifier
public abstract class Identifier
Abstract class Identifier contains common methods for concrete implementations of identifications cores, like Tree or Bayes.
Field Summary | |
---|---|
Configuration |
cnf
Configuration settings |
Context |
con
Current context of execution |
Matrix |
mat
Reference matrix |
float |
sum
Mantains the sum of all probabilities |
Constructor Summary | |
---|---|
Identifier(Context con,
Matrix mat,
Configuration cnf)
Creates a new Identifier with no done tests |
Method Summary | |
---|---|
int |
getBestTaxaIndex()
Returns the index of the taxon with the higher relative probability |
int |
getBestTestIndex()
Returns the key of the test with best value (all taxa vs. all others). |
int |
getBestTestIndex(Context con)
Returns the key of the test with best value (all taxa vs. all others). |
int |
getBestTestIndex(int idTaxa)
Returns the key of the test with best value (one taxon vs. all others). |
int |
getBestTestIndex(int idTaxa,
Context con)
Returns the key of the test with best value (one taxon vs. all others). |
int[] |
getTaxaIndex()
Returns an ordered array (sorted from best to worse) with the index of all alive taxa (the ones which till this moment haven't been discarded) |
int[] |
getTestIndex()
Returns an ordered array (sorted from best to worse) with the index of each missed test in order to choose the best one. |
int[] |
getTestIndex(Context con)
Returns an ordered array (sorted from best to worse) with the index of each missed test in order to choose the best one. |
int[] |
getTestIndex(int idTaxa)
Returns an ordered array (sorted from best to worse) with the index of each missed test in order to choose the best one. |
int[] |
getTestIndex(int idTaxa,
Context con)
Returns an ordered array (sorted from best to worse) with the index of each missed test in order to choose the best one. |
protected boolean |
isSeparator(int idTaxa1,
int idTaxa2,
int idTest)
Returns true if a given pair of taxa are separated one from the other by the specified test |
float |
normTaxaProb(int idTaxa)
Returns the relative probability beetween 0 to 1 of that given taxon is the unknown (wich probability has this taxon to be the unknown and not the other taxa) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Configuration cnf
public Context con
public final Matrix mat
public float sum
Constructor Detail |
---|
public Identifier(Context con, Matrix mat, Configuration cnf)
con
- Context of the executionmat
- Reference matrixMethod Detail |
---|
public int[] getTaxaIndex()
public int getBestTaxaIndex()
public int[] getTestIndex()
public int[] getTestIndex(Context con)
con
- Reference Context
public int[] getTestIndex(int idTaxa)
idTaxa
- Reference taxon key
public int[] getTestIndex(int idTaxa, Context con)
idTaxa
- Reference taxon keycon
- Reference Context
public int getBestTestIndex()
public int getBestTestIndex(Context con)
con
- Reference Context
public int getBestTestIndex(int idTaxa)
idTaxa
- Key of the reference taxons
public int getBestTestIndex(int idTaxa, Context con)
idTaxa
- Key of the reference taxonscon
- Reference context
public float normTaxaProb(int idTaxa)
idTaxa
- Key of reference taxon
protected boolean isSeparator(int idTaxa1, int idTaxa2, int idTest)
idTaxa1
- Identification of the first taxaidTaxa2
- Identification of the second taxaidTest
- Identification of the test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |