New Post: How to create a random matrix in F#?
Would it be possible to add an example of how to create a random matrix in F# say for the uniform distribution?http://numerics.mathdotnet.com/docs/Matrix.html The doc explains how to do it via Array2d...
View ArticleNew Post: How to create a random matrix in F#?
Good point, I just added a few examples:// random matrix with standard distribution: let m6 = DenseMatrix.randomStandard<float> 3 4 // random matrix with a uniform and one with a Gamma...
View ArticleNew Post: Performance - arrays vs library
To learn F# and Math.Net I've written 2 versions of the Jensen Shannon distance: let m1 = DenseMatrix.init 2000 20 (fun i j -> float (i+j)) //values not normalized let js_distance1 (mat :...
View ArticleNew Post: Performance - arrays vs library
In general Math.NET cannot really be much faster than 1D-arrays in such algorithms, but it may be faster than 2D-arrays as used here (which are less optimized in .Net). I ran a few benchmarks (without...
View ArticleNew Post: Performance - arrays vs library
Thank you very much for your analysis! Was really helpful for my understanding of F# and Math.Net. I can confirm that A) speeds up the calculation (by about 15% on my laptop), and if a Fold2 method for...
View ArticleNew Post: Using IIR for determining frequency range
Hi, I'm a total newbie in this field. I was asked to analyze a fraction of a wav file (given timestamps) in order to find the dominant frequency (e.g. 85-180hz). I was recommended to use IIR filtering....
View ArticleNew Post: Using IIR for determining frequency range
For filtering you'd need the Math.NET Filtering library in addition to Math.NET Numerics. Note that Filtering is only available as preview release yet. Indeed, there seems to be an issue with IIR...
View ArticleNew Post: Is it possible to build a Slice/SubVector with shared storage?
No, this is not currently possible, except with a user wrapper. How do you intend to use the resulting sub-vector? Does it need to behave like a normal vector? Thanks, Christoph
View ArticleNew Post: StyleCop
Hi, Christoph, I'd like to ask which tool(s) do you use to bring the code to StyleCop compliant? I am working on a project which needs some standardization. Thanks for your help. Sorry for to post a...
View ArticleNew Post: ARMA - ARCH - GARCH Model Fitting
Hey, I am really wondering if you ever found a solutions for this, I am also looking to implement the GARCH model for a small project of mine and just out of interest! Greets
View ArticleNew Post: Multiple Linear regression in C#
I am having issues using Math.NET for Multiple Linear regression, I have 36 Independent variables and 1 dependent variable, so I am not sure how to set up the matrix to run the Linear regression. I...
View ArticleNew Post: Quadratic equation system solver
Is it possible to use math.net framework to solve nonlinear equation system (4 quadratic equations, 4 variables)? Can you please give me a sample or give me a link to an existent one? I've searched the...
View ArticleNew Post: Please help me to find the correct classes and methods for this...
Warning serious NOOB alert Say, I have a dice that is 19 times as likely to produce a six as a one, because it has been tampered with. When I throw this dice 60 times the expected versus observed...
View ArticleNew Post: add several vectors
Dear community, I'd like to know how to add in a smart way several vectors, that is, I have a List<double[]> lstVectors, and I want to all vectors in the array and have in return another...
View ArticleNew Post: Build DenseMatrix from DenseVector
Dear community, I want to build a DenseMatrix from several DenseVectors. I've been succeed but I've done via: //delete next extra row resultDenseMatrix = (DenseMatrix)result.SubMatrix(...); //insert...
View ArticleNew Post: (CubicSpline) Could I get value X from value Y?
I made a simple curve like this.double[] px = new double[] { 0.0, 5.0, 10.0 }; double[] py = new double[] { 0.0, 3.0, 10.0 }; CubicSpline spline1 = CubicSpline.InterpolateNatural(px, py); axis-x is...
View ArticleNew Post: How do I obtain efficient addition of weighted Complex DenseMatrices?
I'm trying to perform the following operation efficiently with Complex dense matrices resultsSumMatrix = weightA x aMatrix + weightB x bMatrix My matrices are often 2000 x 2000. I currently perform the...
View ArticleNew Post: (CubicSpline) Could I get value X from value Y?
Maybe combine it with a root finder?
View ArticleNew Post: Implementing Power, exponential and logarithmic function as best...
Greetings, Can somebody help me implementing following formula’s in C# for best fit? Logarithmic Trendline The Logarithmic trendline fits a line to ln(x), y–that is, y = a*ln(x) + b. Exponential...
View ArticleNew Post: add several vectors
Assuming all of the "vectors" are the same length (if they aren't, then the result will be the same length as the shortest):List<double[]> lstVectors = ...; double[] vectorSum =...
View Article