public void GeometricMean_nuint(Double expected, UInt32[] values) { nuint[] vals = null; if (values is not null) { vals = new nuint[values.Length]; for (nint i = 0; i < values.Length; i++) { vals[i] = (nuint)values[i]; } } BoundedArray <nuint> array = values is not null ? new BoundedArray <nuint>(vals) : null; Assert.Equal(expected, array.GeometricMean()); }
public void GeometricMean_Double(Double expected, Double[] values) { BoundedArray <Double> array = values is not null ? new BoundedArray <Double>(values) : null; Assert.Equal(expected, array.GeometricMean()); }
public void GeometricMean_UInt64(Double expected, UInt64[] values) { BoundedArray <UInt64> array = values is not null ? new BoundedArray <UInt64>(values) : null; Assert.Equal(expected, array.GeometricMean()); }
public void GeometricMean_Int32(Double expected, Int32[] values) { BoundedArray <Int32> array = values is not null ? new BoundedArray <Int32>(values) : null; Assert.Equal(expected, array.GeometricMean()); }