All Packages Class Hierarchy This Package Previous Next Index
Class improv.actor.behavior.FuzzyComparison
java.lang.Object
|
+----improv.actor.behavior.FuzzyComparison
- public final class FuzzyComparison
- extends Object
- implements ChannelReference
The Fuzzy Comparison represents a comparison between two channel references which returns a value between
0 and 1, based on how close the two values are to each other. In addition to the two references a Curve
is supplied to specify how the returned value varies as the two referenced values diverge.
-
FuzzyComparison(ChannelReference, ChannelReference, Curve)
-
-
getChannel(ChannelContainer)
-
-
rate(ChannelContainer)
-
FuzzyComparison
public FuzzyComparison(ChannelReference p1,
ChannelReference p2,
Curve c)
getChannel
public Channel getChannel(ChannelContainer ChannelContainer)
- Parameters:
- ChannelContainer - the thing being rated.
- Returns:
- an Channel (SFFloatChannel) whose value is the value of the comparison
rate
public double rate(ChannelContainer p)
- Returns:
- the rating of the ChannelContainer
All Packages Class Hierarchy This Package Previous Next Index