org.hd.d.pg2k.svrCore
Class ExhibitPropsComputableMutable.Factor

java.lang.Object
  extended by org.hd.d.pg2k.svrCore.ExhibitPropsComputableMutable.Factor
Enclosing class:
ExhibitPropsComputableMutable

public static final class ExhibitPropsComputableMutable.Factor
extends java.lang.Object

Single (immutable) component of multi-factor value. Consists of:

The value added into the final value is proportional to: (goodness * correlation) / |correlation|.

Uses float values since there is probably not even that much real precision available, and doing so probably saves space and time. Double values can be passed to the constructors, but the extra precision is discarded.


Field Summary
 float correlation
          Correlation of this value with overall result: range [-1,+1].
 float goodness
          Goodness contributed by this factor: range [-1,+1].
 
Constructor Summary
ExhibitPropsComputableMutable.Factor(double goodness, double correlation)
          We will accept double values, but discard the extra precision.
ExhibitPropsComputableMutable.Factor(float goodness, float correlation)
           
 
Method Summary
 java.lang.String toString()
          Convert to human-readable form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

goodness

public final float goodness
Goodness contributed by this factor: range [-1,+1].


correlation

public final float correlation
Correlation of this value with overall result: range [-1,+1].

Constructor Detail

ExhibitPropsComputableMutable.Factor

public ExhibitPropsComputableMutable.Factor(float goodness,
                                            float correlation)

ExhibitPropsComputableMutable.Factor

public ExhibitPropsComputableMutable.Factor(double goodness,
                                            double correlation)
We will accept double values, but discard the extra precision.

Method Detail

toString

public java.lang.String toString()
Convert to human-readable form.

Overrides:
toString in class java.lang.Object

DHD Multimedia Gallery V1.60.69

Copyright (c) 1996-2012, Damon Hart-Davis. All rights reserved.