origincomment
Class Resultat

java.lang.Object
  extended by origincomment.Resultat

public class Resultat
extends java.lang.Object

A class for results ? ?

Author:
Stéfan Engelen (2006) for coding..., Gabriel Chandesris (2008) for comments and makeing the code readable.
See Also:
ADN1test.meilleur_combinaison_sequence(ADN1cible, ADN1cible, ADN1test, ADN1test[], int[], int, int, int, int, int, Resultat, boolean)

Field Summary
private  int barre
          Treshold (default is 40).
private  int decalage
          Decalage.
private  int[] distribution
          Distribution.
private  int max
          Maximum (deafult is -100 000).
private  int moyenne
          Average.
private  java.lang.String[] nom_seq
          Names of sequences.
private  int nombre_meilleurs
          Number of the bests.
private  int[][] score_seq
          Scores of sequences.
 
Constructor Summary
Resultat(ADN1test[] tabSeq)
          Constructor with given table of test sequences.
Resultat(int taille, ADN1test[] tabSeq)
          Deprecated. [not used]
 
Method Summary
 void ajoute(int score, int[] quelleSeq)
          To add a score for a specified sequence...
 void calcul_constantes(int nb)
          To compute constant values...
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

distribution

private int[] distribution
Distribution.


max

private int max
Maximum (deafult is -100 000).


moyenne

private int moyenne
Average.


nombre_meilleurs

private int nombre_meilleurs
Number of the bests.


barre

private int barre
Treshold (default is 40).


decalage

private int decalage
Decalage.


nom_seq

private java.lang.String[] nom_seq
Names of sequences.


score_seq

private int[][] score_seq
Scores of sequences.

Constructor Detail

Resultat

public Resultat(ADN1test[] tabSeq)
Constructor with given table of test sequences.
Initialize decalage to 100.
Initalize distribution table to a length of 201 and content to 0.
Initialize max to -100.

Parameters:
tabSeq - (ADN1test[])
See Also:
ADN1test.resultat_Optimal(ADN1cible, ADN1test, ADN1test[], java.io.BufferedReader, int, int, int, boolean)

Resultat

public Resultat(int taille,
                ADN1test[] tabSeq)
Deprecated. [not used]

Constructor with given length and table of test sequences.

Parameters:
taille - (int) length
tabSeq - (ADN1test[])
Method Detail

ajoute

public void ajoute(int score,
                   int[] quelleSeq)
To add a score for a specified sequence...

Parameters:
score - (int)
quelleSeq - (int) position of the sequence ?
See Also:
ADN1test.meilleur_combinaison_sequence(ADN1cible, ADN1cible, ADN1test, ADN1test[], int[], int, int, int, int, int, Resultat, boolean)

calcul_constantes

public void calcul_constantes(int nb)
To compute constant values...

Parameters:
nb - (int) [set barre]

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object