diff --git a/src/FSharp/BigRational.fs b/src/FSharp/BigRational.fs index 267b07cd..3c04f71b 100644 --- a/src/FSharp/BigRational.fs +++ b/src/FSharp/BigRational.fs @@ -441,7 +441,6 @@ type BigRational = | Q q -> Q (BigRationalLarge.Pow (q, i)) - [] static member PowN (n, i : int) = BigRational.Pow(n, i) diff --git a/src/Numerics/IntegralTransforms/Fourier.cs b/src/Numerics/IntegralTransforms/Fourier.cs index 9653853d..f10785d1 100644 --- a/src/Numerics/IntegralTransforms/Fourier.cs +++ b/src/Numerics/IntegralTransforms/Fourier.cs @@ -38,7 +38,7 @@ namespace MathNet.Numerics.IntegralTransforms /// /// Complex Fast (FFT) Implementation of the Discrete Fourier Transform (DFT). /// - public static partial class Fourier + public static class Fourier { /// /// Applies the forward Fast Fourier Transform (FFT) to arbitrary-length sample vectors. @@ -744,158 +744,6 @@ namespace MathNet.Numerics.IntegralTransforms denseStorage.CopyToUnchecked(spectrum.Storage, ExistingData.Clear); } - /// - /// Naive forward DFT, useful e.g. to verify faster algorithms. - /// - /// Time-space sample vector. - /// Fourier Transform Convention Options. - /// Corresponding frequency-space vector. - [Obsolete("Use Forward instead. Will be dropped in version 5.0 and behave like Forward until then.")] - public static Complex32[] NaiveForward(Complex32[] samples, FourierOptions options = FourierOptions.Default) - { - var result = new Complex32[samples.Length]; - samples.Copy(result); - Forward(result, options); - return result; - } - - /// - /// Naive forward DFT, useful e.g. to verify faster algorithms. - /// - /// Time-space sample vector. - /// Fourier Transform Convention Options. - /// Corresponding frequency-space vector. - [Obsolete("Use Forward instead. Will be dropped in version 5.0 and behave like Forward until then.")] - public static Complex[] NaiveForward(Complex[] samples, FourierOptions options = FourierOptions.Default) - { - var result = new Complex[samples.Length]; - samples.Copy(result); - Forward(result, options); - return result; - } - - /// - /// Naive inverse DFT, useful e.g. to verify faster algorithms. - /// - /// Frequency-space sample vector. - /// Fourier Transform Convention Options. - /// Corresponding time-space vector. - [Obsolete("Use Inverse instead. Will be dropped in version 5.0 and behave like Inverse until then.")] - public static Complex32[] NaiveInverse(Complex32[] spectrum, FourierOptions options = FourierOptions.Default) - { - var result = new Complex32[spectrum.Length]; - spectrum.Copy(result); - Inverse(result, options); - return result; - } - - /// - /// Naive inverse DFT, useful e.g. to verify faster algorithms. - /// - /// Frequency-space sample vector. - /// Fourier Transform Convention Options. - /// Corresponding time-space vector. - [Obsolete("Use Inverse instead. Will be dropped in version 5.0 and behave like Inverse until then.")] - public static Complex[] NaiveInverse(Complex[] spectrum, FourierOptions options = FourierOptions.Default) - { - var result = new Complex[spectrum.Length]; - spectrum.Copy(result); - Inverse(result, options); - return result; - } - - /// - /// Radix-2 forward FFT for power-of-two sized sample vectors. - /// - /// Sample vector, where the FFT is evaluated in place. - /// Fourier Transform Convention Options. - /// - [Obsolete("Use Forward instead. Will be dropped in version 5.0 and behave like Forward until then.")] - public static void Radix2Forward(Complex32[] samples, FourierOptions options = FourierOptions.Default) - { - Forward(samples, options); - } - - /// - /// Radix-2 forward FFT for power-of-two sized sample vectors. - /// - /// Sample vector, where the FFT is evaluated in place. - /// Fourier Transform Convention Options. - /// - [Obsolete("Use Forward instead. Will be dropped in version 5.0 and behave like Forward until then.")] - public static void Radix2Forward(Complex[] samples, FourierOptions options = FourierOptions.Default) - { - Forward(samples, options); - } - - /// - /// Radix-2 inverse FFT for power-of-two sized sample vectors. - /// - /// Sample vector, where the FFT is evaluated in place. - /// Fourier Transform Convention Options. - /// - [Obsolete("Use Inverse instead. Will be dropped in version 5.0 and behave like Inverse until then.")] - public static void Radix2Inverse(Complex32[] spectrum, FourierOptions options = FourierOptions.Default) - { - Inverse(spectrum, options); - } - - /// - /// Radix-2 inverse FFT for power-of-two sized sample vectors. - /// - /// Sample vector, where the FFT is evaluated in place. - /// Fourier Transform Convention Options. - /// - [Obsolete("Use Inverse instead. Will be dropped in version 5.0 and behave like Inverse until then.")] - public static void Radix2Inverse(Complex[] spectrum, FourierOptions options = FourierOptions.Default) - { - Inverse(spectrum, options); - } - - /// - /// Bluestein forward FFT for arbitrary sized sample vectors. - /// - /// Sample vector, where the FFT is evaluated in place. - /// Fourier Transform Convention Options. - [Obsolete("Use Forward instead. Will be dropped in version 5.0 and behave like Forward until then.")] - public static void BluesteinForward(Complex32[] samples, FourierOptions options = FourierOptions.Default) - { - Forward(samples, options); - } - - /// - /// Bluestein forward FFT for arbitrary sized sample vectors. - /// - /// Sample vector, where the FFT is evaluated in place. - /// Fourier Transform Convention Options. - [Obsolete("Use Forward instead. Will be dropped in version 5.0 and behave like Forward until then.")] - public static void BluesteinForward(Complex[] samples, FourierOptions options = FourierOptions.Default) - { - Forward(samples, options); - } - - /// - /// Bluestein inverse FFT for arbitrary sized sample vectors. - /// - /// Sample vector, where the FFT is evaluated in place. - /// Fourier Transform Convention Options. - [Obsolete("Use Inverse instead. Will be dropped in version 5.0 and behave like Inverse until then.")] - public static void BluesteinInverse(Complex32[] spectrum, FourierOptions options = FourierOptions.Default) - { - Inverse(spectrum, options); - } - - /// - /// Bluestein inverse FFT for arbitrary sized sample vectors. - /// - /// Sample vector, where the FFT is evaluated in place. - /// Fourier Transform Convention Options. - [Obsolete("Use Inverse instead. Will be dropped in version 5.0 and behave like Inverse until then.")] - public static void BluesteinInverse(Complex[] spectrum, FourierOptions options = FourierOptions.Default) - { - Inverse(spectrum, options); - } - /// /// Generate the frequencies corresponding to each index in frequency space. /// The frequency space has a resolution of sampleRate/N. diff --git a/src/Numerics/SpecialFunctions/Evaluate.cs b/src/Numerics/SpecialFunctions/Evaluate.cs index 20a87964..a8e1bdac 100644 --- a/src/Numerics/SpecialFunctions/Evaluate.cs +++ b/src/Numerics/SpecialFunctions/Evaluate.cs @@ -55,45 +55,6 @@ namespace MathNet.Numerics /// public static class Evaluate { - /// - /// Evaluate a polynomial at point x. - /// Coefficients are ordered by power with power k at index k. - /// Example: coefficients [3,-1,2] represent y=2x^2-x+3. - /// - /// The location where to evaluate the polynomial at. - /// The coefficients of the polynomial, coefficient for power k at index k. - [Obsolete("Use Polynomial.Evaluate instead. Will be removed in the next major version.")] - public static double Polynomial(double z, params double[] coefficients) - { - return Numerics.Polynomial.Evaluate(z, coefficients); - } - - /// - /// Evaluate a polynomial at point x. - /// Coefficients are ordered by power with power k at index k. - /// Example: coefficients [3,-1,2] represent y=2x^2-x+3. - /// - /// The location where to evaluate the polynomial at. - /// The coefficients of the polynomial, coefficient for power k at index k. - [Obsolete("Use Polynomial.Evaluate instead. Will be removed in the next major version.")] - public static Complex Polynomial(Complex z, params double[] coefficients) - { - return Numerics.Polynomial.Evaluate(z, coefficients); - } - - /// - /// Evaluate a polynomial at point x. - /// Coefficients are ordered by power with power k at index k. - /// Example: coefficients [3,-1,2] represent y=2x^2-x+3. - /// - /// The location where to evaluate the polynomial at. - /// The coefficients of the polynomial, coefficient for power k at index k. - [Obsolete("Use Polynomial.Evaluate instead. Will be removed in the next major version.")] - public static Complex Polynomial(Complex z, params Complex[] coefficients) - { - return Numerics.Polynomial.Evaluate(z, coefficients); - } - /// /// Numerically stable series summation ///