edu.vt.marian.search
Class ScaledWtdObjSet

java.lang.Object
  |
  +--edu.vt.marian.search.ScaledWtdObjSet

public class ScaledWtdObjSet
extends java.lang.Object
implements WtdObjSet

Scaled Weighted Object Set. A transformation of some other WtdObjSet where every element has been scaled by the same factor.

See Also:
WtdObjSet

Field Summary
protected  edu.vt.marian.common.Debug debug
           
protected  edu.vt.marian.common.Weight scFactor
           
protected  WtdObjSet set
           
 
Constructor Summary
ScaledWtdObjSet(WtdObjSet baseSet, edu.vt.marian.common.Weight scalingFactor, edu.vt.marian.common.Debug d)
           
 
Method Summary
 int approxSize()
           
 WtdObjSetEnumeration elements()
           
 int exactSize()
           
 edu.vt.marian.common.Weight isElt(edu.vt.marian.common.FullID ID)
           
 boolean isEmpty()
           
 int maxSize()
           
 java.lang.String profile()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

protected edu.vt.marian.common.Debug debug

set

protected WtdObjSet set

scFactor

protected edu.vt.marian.common.Weight scFactor
Constructor Detail

ScaledWtdObjSet

public ScaledWtdObjSet(WtdObjSet baseSet,
                       edu.vt.marian.common.Weight scalingFactor,
                       edu.vt.marian.common.Debug d)
Method Detail

elements

public WtdObjSetEnumeration elements()
Specified by:
elements in interface WtdObjSet

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface WtdObjSet

isElt

public edu.vt.marian.common.Weight isElt(edu.vt.marian.common.FullID ID)
Specified by:
isElt in interface WtdObjSet

exactSize

public int exactSize()
Specified by:
exactSize in interface WtdObjSet

approxSize

public int approxSize()
Specified by:
approxSize in interface WtdObjSet

maxSize

public int maxSize()
Specified by:
maxSize in interface WtdObjSet

toString

public java.lang.String toString()
Specified by:
toString in interface WtdObjSet
Overrides:
toString in class java.lang.Object

profile

public java.lang.String profile()
Specified by:
profile in interface WtdObjSet