de.aitools.aq.invertedindex.core
Class Quantile

java.lang.Object
  extended by de.aitools.aq.invertedindex.core.Quantile

public class Quantile
extends java.lang.Object

A class that represents the quantile of a postlist. A quantile defines a set of intervals from the postlist's cumulative distribution function. The distribution is computed by summation of the masses over all postlist entries. Quantiles are only generated when sorting was enabled during indexing.

Version:
$Id: Quantile.java,v 1.3 2011/02/15 10:32:43 hoppe Exp $
Author:
martin.trenkmann@uni-weimar.de

Nested Class Summary
static class Quantile.Order
          Defines a set of intervals.
 
Constructor Summary
Quantile()
          The default constructor.
Quantile(int[] values)
          The explicit constructor.
Quantile(Quantile quantile)
          The copy constructor.
 
Method Summary
 int get(Quantile.Order order)
          Get the value for the given order.
 void set(int[] values)
          Set the entire quantile at once.
 void set(Quantile.Order order, int value)
          Set the value for the given order.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quantile

public Quantile()
The default constructor.


Quantile

public Quantile(int[] values)
The explicit constructor.


Quantile

public Quantile(Quantile quantile)
The copy constructor.

Parameters:
quantile -
Method Detail

get

public int get(Quantile.Order order)
Get the value for the given order. Here this value corresponds to the postlist length.


set

public void set(Quantile.Order order,
                int value)
Set the value for the given order. Here this value corresponds to the postlist length.


set

public void set(int[] values)
Set the entire quantile at once.

Parameters:
values -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object