|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodele.ObjectListe
modele.SequenceListe
public class SequenceListe
This class to provide easy-to-use Sequence tables / Lists.
Tests showing that for factorielle, limit considering Java int limit is 15 !!
Field Summary | |
---|---|
private Sequence[] |
liste
The list of Sequence's. |
private double |
moyenneVariabilite
Average of variabilite of Sequence's in list. |
Constructor Summary | |
---|---|
SequenceListe()
Default constructor with a list of 0 elements. |
|
SequenceListe(Sequence[] liste)
Constructor with a pre-made table of Sequence. |
Method Summary | |
---|---|
void |
addSequence(Sequence elt)
To add a Sequence at the end of the list. |
java.lang.Object |
clone()
To get a copy of the current SequenceListe. |
static SequenceListe[] |
combinationWithoutRepetition(int k,
int n,
SequenceListe C)
Maybe not the best way to make combination / arrangement without repetition, but works well. |
static int |
combinatoire(int n,
int k)
The classic k! |
void |
computeAverageVariabilite()
This procedure to compute the variabilite average of the table. |
boolean |
equals(SequenceListe toCompare)
To know if two SequenceListe are equals (local instance and an other). |
static int |
factorielle(int n)
This method compute a factorial of a number by the iterative way. |
Sequence[] |
getListe()
|
double |
getMoyenneVariabilite()
|
Sequence |
getSequence(int i)
|
Sequence |
getSequence(java.lang.String nom)
|
boolean |
has(Sequence elt)
To know if a Sequence is in this list. |
boolean |
isIn(SequenceListe[] listes)
To know if current instance of SequenceListe is in a table of SequenceListe's. |
int |
length()
To get the length of the current list of Object's |
void |
removeSequence(int nbElt)
To remove a Sequence at a specific place in the list. |
void |
removeSequence(Sequence elt)
To remove a specific Sequence. |
void |
setListe(Sequence[] liste)
|
void |
setSequence(Sequence elt,
int i)
|
void |
sortByDecreasing(int var)
Sort by decreasing (default = homology with cible sequence) : (0) variability |
void |
sortByIncreasing(int var)
Sort by increasing (default = homology with cible sequence) : (0) variability |
Methods inherited from class modele.ObjectListe |
---|
addObjet, equals, getListeObjects, getObject, has, removeObject, removeObject, setListe, setObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Sequence[] liste
private double moyenneVariabilite
Sequence.variabilite
Constructor Detail |
---|
public SequenceListe()
public SequenceListe(Sequence[] liste)
liste
- Method Detail |
---|
public int length()
ObjectListe
length
in class ObjectListe
public double getMoyenneVariabilite()
public Sequence[] getListe()
public Sequence getSequence(java.lang.String nom)
public Sequence getSequence(int i)
public void setListe(Sequence[] liste)
public void setSequence(Sequence elt, int i)
public void addSequence(Sequence elt)
elt
- Sequence to add.public boolean has(Sequence elt)
elt
- Sequence.
public void removeSequence(Sequence elt)
elt
- Sequence to removepublic void removeSequence(int nbElt)
nbElt
- Position of the Sequence.public void computeAverageVariabilite()
Algorithms.defaultPredictionOfStructure(modele.Sequence, modele.SequenceListe, int)
public void sortByDecreasing(int var)
var
- (int) selection of sorting...Sequence.getScore(int)
public void sortByIncreasing(int var)
var
- (int) selection of sorting...Sequence.getScore(int)
public boolean equals(SequenceListe toCompare)
toCompare
- Other SequenceListe.
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isIn(SequenceListe[] listes)
listes
- (SequenceListe[]) (table of SequenceListe's).
public static int factorielle(int n)
n
- (int)
combinationWithoutRepetition(int, int, SequenceListe)
,
Algorithms.defaultPredictionOfStructure(modele.Sequence, modele.SequenceListe, int)
public static int combinatoire(int n, int k)
n
- (int)k
- (int)
public static SequenceListe[] combinationWithoutRepetition(int k, int n, SequenceListe C)
k
- Number of elements in series (k-uplets) you want.n
- Global number of elements of C (C.length()).C
- The SequenceListe you want to get series.
Algorithms.defaultPredictionOfStructure(modele.Sequence, modele.SequenceListe, int)
,
factorielle(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |