|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--taskspaces.rna.Partition
Contains methods to generate random RNA sequence Strings from a sequence over a set space of partitions given a number of objects and modules.
| Field Summary | |
(package private) int |
modules
Holds number of modules. |
(package private) int |
objects
Holds number of objects. |
(package private) int[] |
partitions
Holds partition values. |
| Constructor Summary | |
Partition()
|
|
| Method Summary | |
int[] |
fill(int obs,
int mods)
Sets the partition array to the correct values. |
int |
getModuleNumber()
Returns the current number of modules. |
int |
getObjectNumber()
Returns the current number of objects. |
int[] |
getPartitions()
Returns the partition array. |
float[] |
getPercentages(float percentage)
Returns the partition percentages when passed a percentage. |
int[] |
next()
Returns the next permutation of the partition array. |
void |
reset()
Resets the partitions. |
void |
setModuleNumber(int i)
Sets the current number of modules. |
void |
setObjectNumber(int i)
Sets the current number of objects. |
void |
setPartitions(int[] i)
Sets the partition array to the given array. |
int |
sum(int[] array)
Sums the elements of a given int[]. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
int objects
int modules
int[] partitions
| Constructor Detail |
public Partition()
| Method Detail |
public float[] getPercentages(float percentage)
percentage - indicates percent steps.public int getObjectNumber()
public void setObjectNumber(int i)
i - the desired number of objects.public int getModuleNumber()
public void setModuleNumber(int i)
i - the desired number of modules.public int[] getPartitions()
public void setPartitions(int[] i)
i - the partition array to set as the
current partition array.
public void reset()
throws java.lang.Exception
public int[] fill(int obs,
int mods)
throws java.lang.Exception
o - the number of objects.m - the number of modules.
public int[] next()
throws java.lang.Exception
public int sum(int[] array)
ia - the integer array to sum.
|
-bottom | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||