uk.ac.gla.dcs.renaissance.iqir.summarisation
Class LengthPrior
java.lang.Object
uk.ac.gla.dcs.renaissance.iqir.summarisation.LengthPrior
- Direct Known Subclasses:
- LengthPrior.Normal, LengthPrior.Uniform
public abstract class LengthPrior
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LengthPrior
public LengthPrior()
add
public void add(int length)
- Add a new length
- Parameters:
length
-
compute
public void compute()
- Compute the needed statistics
getPrior
public double getPrior(int length)
- Get the prior for this length
- Parameters:
length
-
- Returns:
writeID
public void writeID(DataOutputStream raf)
throws IOException
- Throws:
IOException
checkID
public void checkID(DataInputStream raf)
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.