Ignore:
Timestamp:
07/14/11 14:18:04 (13 years ago)
Author:
sherbold
Message:

+ added commands to obtain absolut number of observed/covered/new/possible subsequences of a given length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchCore/src/de/ugoe/cs/eventbench/coverage/CoverageCalculatorProcess.java

    r125 r126  
    162162                return weight; 
    163163        } 
     164         
     165        /** 
     166         * <p> 
     167         * Returns the number of covered subsequences of length k. 
     168         * </p> 
     169         * @return number of covered subsequences 
     170         */ 
     171        public int getNumCovered() { 
     172                if (containedSubSeqs == null) { 
     173                        containedSubSeqs = SequenceTools.containedSubSequences(sequences, 
     174                                        length); 
     175                } 
     176                return containedSubSeqs.size(); 
     177        } 
     178         
     179        /** 
     180         * <p> 
     181         * Returns the number of possible subsequences of length k according to the stochastic process. 
     182         * </p> 
     183         *  
     184         * @return number of possible subsequences 
     185         */ 
     186        public int getNumPossible() { 
     187                if (allPossibleSubSeqs == null) { 
     188                        allPossibleSubSeqs = process.generateSequences(length); 
     189                } 
     190                return allPossibleSubSeqs.size(); 
     191        } 
    164192 
    165193} 
Note: See TracChangeset for help on using the changeset viewer.