public MinMaxNorm(TensorOld tensor) { Min = tensor.Min(); Max = tensor.Max(); Denom = Max - Min; if (Denom == 0) { throw new Exception("max=min"); } }
public LogNorm(TensorOld tensor) { Max = tensor.Max(); Denom = Math.Log10(Max); }