gov.nist.nlpir.irf.query
Class LinearCombinator

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--gov.nist.nlpir.irf.query.Combinator
                          |
                          +--gov.nist.nlpir.irf.query.LinearCombinator

public class LinearCombinator
extends Combinator

The Linear Combinator

Version:
$Revision: 1.1 $
Author:
This software was produced by NIST, an agency of the U.S. government, and by statute is not subject to copyright in the United States. Recipients of this software assume all responsibilities associated with its operation, modification and maintenance.
See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LinearCombinator()
           
LinearCombinator(int size)
          Create a linear combinator.
LinearCombinator(int numberOfModalities, double[] normalizedWeights)
          Create and set linear combinator.
 
Method Summary
 void present(int i, IndexingModalities im)
          display current linear combinator to standard output.
 void presentBrief(int i)
          display current linear combinator using indexes instead of imus to standard output.
 void presentBrief(java.util.Vector v, int i)
          display the linear combinator, v, using indexes instead of imus to standard output.
 
Methods inherited from class gov.nist.nlpir.irf.query.Combinator
presentCombinatorIMU, printSpaces
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, ensureCapacityHelper, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

LinearCombinator

public LinearCombinator()

LinearCombinator

public LinearCombinator(int size)
Create a linear combinator.
Parameters:
size - number of objects to be held by the linear combinator.

LinearCombinator

public LinearCombinator(int numberOfModalities,
                        double[] normalizedWeights)
Create and set linear combinator.
Parameters:
im - current indexing modalities
normalized - weights used in scoring
Method Detail

present

public void present(int i,
                    IndexingModalities im)
display current linear combinator to standard output.
Parameters:
i - width in characters of indentation
im - current indexing modalities
Overrides:
present in class Combinator

presentBrief

public void presentBrief(int i)
display current linear combinator using indexes instead of imus to standard output.
Parameters:
i - width in characters of indentation
Overrides:
presentBrief in class Combinator

presentBrief

public void presentBrief(java.util.Vector v,
                         int i)
display the linear combinator, v, using indexes instead of imus to standard output.
Parameters:
v - a linear combinator
i - width in characters of indentation
Overrides:
presentBrief in class Combinator