uk.ac.gla.dcs.renaissance.iqir.summarisation
Class LengthPrior.Normal

java.lang.Object
  extended by uk.ac.gla.dcs.renaissance.iqir.summarisation.LengthPrior
      extended by uk.ac.gla.dcs.renaissance.iqir.summarisation.LengthPrior.Normal
Enclosing class:
LengthPrior

public static class LengthPrior.Normal
extends LengthPrior


Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.gla.dcs.renaissance.iqir.summarisation.LengthPrior
LengthPrior.Normal, LengthPrior.Uniform
 
Constructor Summary
LengthPrior.Normal()
           
 
Method Summary
 void add(int length)
          Add a new length
 void compute()
          Compute the needed statistics
 double getPrior(int length)
          Get the prior for this length
 String toString()
           
 
Methods inherited from class uk.ac.gla.dcs.renaissance.iqir.summarisation.LengthPrior
checkID, writeID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LengthPrior.Normal

public LengthPrior.Normal()
Method Detail

add

public void add(int length)
Description copied from class: LengthPrior
Add a new length

Overrides:
add in class LengthPrior

compute

public void compute()
Description copied from class: LengthPrior
Compute the needed statistics

Overrides:
compute in class LengthPrior

toString

public String toString()
Overrides:
toString in class Object

getPrior

public double getPrior(int length)
Description copied from class: LengthPrior
Get the prior for this length

Overrides:
getPrior in class LengthPrior
Returns:


Copyright © 2011. All Rights Reserved.