Enclosing class:
ValueScaler

protected static class ValueScaler.StandardScaler extends ValueScaler.AbstractDoubleScaler
  • Constructor Details

  • Method Details

    • onlyGoodQuality

      protected boolean onlyGoodQuality()
      Specified by:
      onlyGoodQuality in class ValueScaler.AbstractDoubleScaler
    • scale

      protected double scale(double v)
      The equations are:

        --Linear--
         Xs = dS * (dRx/dR) + SL
         X = dR * (dSxs/dS) + RL
      
         --SQRT--
         Xs = SQRT(dS*(dRx/dR))+SL
      
         Where 'd'˜delta, S=scaled values, X=raw input value, Xs=scaled input value
         SL/RL = shared/raw low
      
         This function scales the incoming value, from "raw" to "scaled".
         Right now, everything coming in will be converted to a double before being worked on, then
         converted back to whatever it was.
       
      Specified by:
      scale in class ValueScaler.AbstractDoubleScaler
    • deScale

      protected double deScale(double v)
      The opposite of scale, returns a scaled value back to the raw value.
      Specified by:
      deScale in class ValueScaler.AbstractDoubleScaler