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

java.lang.Object
  extended by uk.ac.gla.dcs.renaissance.iqir.summarisation.LengthPrior
Direct Known Subclasses:
LengthPrior.Normal, LengthPrior.Uniform

public abstract class LengthPrior
extends Object


Nested Class Summary
static class LengthPrior.Normal
           
static class LengthPrior.Uniform
           
 
Constructor Summary
LengthPrior()
           
 
Method Summary
 void add(int length)
          Add a new length
 void checkID(DataInputStream raf)
           
 void compute()
          Compute the needed statistics
 double getPrior(int length)
          Get the prior for this length
 void writeID(DataOutputStream raf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LengthPrior

public LengthPrior()
Method Detail

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.