|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttpp.ZeroConstraint
public class ZeroConstraint
Clamp the weights of the specified attributes to zero
Constructor Summary | |
---|---|
ZeroConstraint(int[] attributes)
Specify which attributes to clamp at zero |
Method Summary | |
---|---|
Projection |
findNearestValid(Projection p)
Find the nearest projection to that given that meets the constraint |
boolean |
isValid(Projection p)
Whether or not the given projection meets the constraint |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZeroConstraint(int[] attributes)
Method Detail |
---|
public Projection findNearestValid(Projection p)
ProjectionConstraint
findNearestValid
in interface ProjectionConstraint
public boolean isValid(Projection p)
ProjectionConstraint
isValid
in interface ProjectionConstraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |