public double Get(double x, double y)
        {
            double nx, ny;

            nx = x * _cos2d - y * _sin2d;
            ny = y * _cos2d + x * _sin2d;
            return(_source.Get(nx, ny));
        }
Exemple #2
0
 public double Get(double x)
 {
     if (!_c2.valid || _c2.x != x)
     {
         _c2.x     = x;
         _c2.valid = true;
         _c2.val   = _source.Get(x);
     }
     return(_c2.val);
 }
Exemple #3
0
        public double Get(double x)
        {
            double value = _source.Get(x);
            double gain  = _gain.Get(x);

            if (gain < 0.5)
            {
                return(Math.Pow(2.0 * value, Math.Log(1.0 - gain) / Math.Log(0.5)) / 2.0);
            }
            else
            {
                return(1.0 - Math.Pow(2.0 - 2.0 * value, Math.Log(1.0 - gain) / Math.Log(0.5)) / 2.0);
            }
        }
Exemple #4
0
 public double Get(double x)
 {
     return(_noiseParam == null ? _scalarParam : _noiseParam.Get(x));
 }
Exemple #5
0
        public double Get(double x)
        {
            double value = _source.Get(x);

            return(Math.Pow(value, Math.Log(_bias.Get(x)) / Math.Log(0.5)));
        }
Exemple #6
0
 public double Get(double x)
 {
     return(-1.0 * _source.Get(x));
 }
Exemple #7
0
 public double Get(double x)
 {
     return(MathHelper.Clamp(_source.Get(x), _lowClamp, _highClamp));
 }