Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/PredictionByPartialMatch.java

    r655 r766  
    11package de.ugoe.cs.quest.usageprofiles; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedList; 
     
    9089     * @param probEscape 
    9190     *            escape probability used by the model 
    92      * @throws InvalidParameterException 
     91     * @throws IllegalArgumentException 
    9392     *             thrown if minOrder is less than 0 or greater than markovOrder or probEscape is 
    9493     *             not in the interval (0,1) 
     
    9796        super(markovOrder, r); 
    9897        if (minOrder < 0) { 
    99             throw new InvalidParameterException("minOrder must be greather than or equal to 0"); 
     98            throw new IllegalArgumentException("minOrder must be greather than or equal to 0"); 
    10099        } 
    101100        if (minOrder > markovOrder) { 
    102             throw new InvalidParameterException( 
     101            throw new IllegalArgumentException( 
    103102                                                "minOrder must be less than or equal to markovOrder"); 
    104103        } 
    105104        if (probEscape <= 0.0 || probEscape >= 1.0) { 
    106             throw new InvalidParameterException("probEscape must be in the interval (0,1)"); 
     105            throw new IllegalArgumentException("probEscape must be in the interval (0,1)"); 
    107106        } 
    108107        this.probEscape = probEscape; 
     
    147146    public double getProbability(List<Event> context, Event symbol) { 
    148147        if (context == null) { 
    149             throw new InvalidParameterException("context must not be null"); 
     148            throw new IllegalArgumentException("context must not be null"); 
    150149        } 
    151150        if (symbol == null) { 
    152             throw new InvalidParameterException("symbol must not be null"); 
     151            throw new IllegalArgumentException("symbol must not be null"); 
    153152        } 
    154153        double result = 0.0d; 
Note: See TracChangeset for help on using the changeset viewer.