csharpfftfsharpintegrationinterpolationlinear-algebramathdifferentiationmatrixnumericsrandomregressionstatisticsmathnet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
611 B
22 lines
611 B
open System
|
|
open System.Diagnostics
|
|
open MathNet.Numerics
|
|
open MathNet.Numerics.IntegralTransforms
|
|
open MathNet.Numerics.LinearAlgebra
|
|
|
|
type Complex = System.Numerics.Complex
|
|
|
|
[<EntryPoint>]
|
|
let main argv =
|
|
|
|
// Code touching all providers
|
|
let matrix : Matrix<Complex> = DenseMatrix.randomSeed 10 10 100
|
|
let vector = (matrix |> Matrix.svd).S
|
|
vector.AsArray() |> Fourier.Forward
|
|
printfn "%s" (Control.Describe())
|
|
printfn "DC=%f; Low=%f; Hight=%f" vector.[0].Magnitude vector.[1].Magnitude vector.[5].Magnitude
|
|
|
|
if Debugger.IsAttached then
|
|
Console.ReadKey() |> ignore
|
|
|
|
0
|
|
|