Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
DDred committed Jul 22, 2011
1 parent e1702f2 commit 0c83156
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 22 additions & 4 deletions resources/com/rapidminer/resources/OperatorsHMM.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
<group key="reader">
<operator>
<key>FASTAReader</key>
<class>Bio.RapidMiner.FASTAReaderRM</class>
<class>rapidminer.Bioinformatics.FASTAReaderRM</class>
</operator>
</group>
<group key="ORF">
<operator>
<key>ORFFinder</key>
<class>rapidminer.Bioinformatics.ORMFinderRM</class>
</operator>
</group>
</group>
Expand All @@ -17,6 +23,10 @@
<key>Building characteristic</key>
<class>rapidminer.BuildingCharacteristicRM</class>
</operator>
<operator>
<key>UBuilding characteristic</key>
<class>rapidminer.chain.UBuildingCharacteristicRM</class>
</operator>
</group>
<group key="readers">
<operator>
Expand All @@ -36,13 +46,21 @@
</operator>
</group>
<operator>
<key>Buildings counter</key>
<class>interval_analysis.chain.RMBuildingCounter</class>
<key>Event recombination</key>
<class>rapidminer.chain.EventRecombinationRM</class>
</operator>
<operator>
<key>Mixed_converter</key>
<key>Mixed converter</key>
<class>rapidminer.chain.MixedConverterRM</class>
</operator>
<operator>
<key>Chain decompositor</key>
<class>rapidminer.chain.Decompositor.ChainDecompositorRM</class>
</operator>
<operator>
<key>Buildings counter</key>
<class>rapidminer.chain.RMBuildingCounter</class>
</operator>
</group>
<group key="contents">
<group key="generators">
Expand Down
20 changes: 20 additions & 0 deletions src/libiada/IntervalAnalysis/Chain.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,24 @@ public double injectIntoCharacteristic(Class<? extends ICharacteristicCalculator
public ChainWithCharacteristic getUniformChain(IBaseObject baseObject) {
return null; //TODO:"Fill method"
}

public ChainWithCharacteristicSet getDecomposition(int wordLength, int step) throws Exception {
ChainWithCharacteristicSet chSet = new ChainWithCharacteristicSet();
int currentPos = 0;
int wordCount = Math.round((getLength() - wordLength) / step);
/*if (step == 1) {
wordCount -= (wordLength - 1);
}*/
for (int j = 0; j <= wordCount; j++) {
Chain ch = new Chain(wordLength);
int newWordPos = 0;
for (int i = currentPos; i < currentPos + wordLength; i++) {
ch.add(this.get(i), newWordPos);
newWordPos++;
}
currentPos += step;
chSet.add(ch);
}
return chSet;
}
}
2 changes: 1 addition & 1 deletion src/libiada/IntervalAnalysis/UniformChain.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void buildIntervals() throws Exception {
private int getRight(int current) {
for (int i = current + 1; i < getLength(); i++)
{
if (vault.get(i) == 1)
if (vault.get(i) == getAlpahbet().getPower()-1)
{
return i;
}
Expand Down

0 comments on commit 0c83156

Please sign in to comment.