public void SigmNormalize() { double[] values = sigm_normalizer.GetValues(); foreach (var value in values) { Assert.GreaterOrEqual(value, 0); Assert.LessOrEqual(value, 1); } }
public void HyperNormalize() { double[] values = hyper_normalizer.GetValues(); double min = values[0]; double max = values[0]; foreach (var value in values) { Assert.GreaterOrEqual(value, -1); Assert.LessOrEqual(value, 1); if (min > value) { min = value; } if (max < value) { max = value; } } MyAssert.CloseTo(min * DataNormalizer.SAFE_KOEFF, -1, 0.025); MyAssert.CloseTo(max * DataNormalizer.SAFE_KOEFF, 1, 0.025); }