core
Class Bayes

java.lang.Object
  extended by core.Identifier
      extended by core.Bayes

public final class Bayes
extends Identifier

Identification identax.core extension using Bayesian Probabilities. It allows both single-step or step-by-step run.

Version:
1.0
Author:
Oscar Flores

Field Summary
 
Fields inherited from class core.Identifier
cnf, con, mat, sum
 
Constructor Summary
Bayes(Context con, Matrix mat, Configuration cnf)
          Default constructor for a none done test workspace
Bayes(Context con, Matrix mat, Configuration cnf, int[] test_resu)
          Constructs the Identifier and runs it with a single-step for all the non-missed test results supplied in the array
 
Method Summary
 void run(int idTest, int result)
          This method update the current identification state with the supplied result for the test
 
Methods inherited from class core.Identifier
getBestTaxaIndex, getBestTestIndex, getBestTestIndex, getBestTestIndex, getBestTestIndex, getTaxaIndex, getTestIndex, getTestIndex, getTestIndex, getTestIndex, isSeparator, normTaxaProb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bayes

public Bayes(Context con,
             Matrix mat,
             Configuration cnf)
Default constructor for a none done test workspace

Parameters:
con - Context of the execution
mat - Reference matrix
cnf - Configuration

Bayes

public Bayes(Context con,
             Matrix mat,
             Configuration cnf,
             int[] test_resu)
      throws CoreException
Constructs the Identifier and runs it with a single-step for all the non-missed test results supplied in the array

Parameters:
con - Context of the execution
mat - Reference matrix
cnf - Configuration
test_resu - Array with the test results
Throws:
CoreException
Method Detail

run

public void run(int idTest,
                int result)
         throws CoreException
This method update the current identification state with the supplied result for the test

Parameters:
idTest - Key of the realized test
result - Result of the test
Throws:
CoreException