Example #1
0
        public MinMaxNorm(TensorOld tensor)
        {
            Min   = tensor.Min();
            Max   = tensor.Max();
            Denom = Max - Min;

            if (Denom == 0)
            {
                throw new Exception("max=min");
            }
        }
Example #2
0
 public LogNorm(TensorOld tensor)
 {
     Max   = tensor.Max();
     Denom = Math.Log10(Max);
 }