Пример #1
0
        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));
        }
Пример #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);
 }
Пример #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);
            }
        }
Пример #4
0
 public double Get(double x)
 {
     return(_noiseParam == null ? _scalarParam : _noiseParam.Get(x));
 }
Пример #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)));
        }
Пример #6
0
 public double Get(double x)
 {
     return(-1.0 * _source.Get(x));
 }
Пример #7
0
 public double Get(double x)
 {
     return(MathHelper.Clamp(_source.Get(x), _lowClamp, _highClamp));
 }