This tag doesn't currently have an excerpt. Help contribute by writing one
Questions tagged [math.net]
256 questions
2
votes
1 answer
List.unfold/Array.unfold causes memory blowout
Friends, the following code runs fine when using Seq.unfold. However, List.unfold or Array.unfold (as shown below) causes the program to never terminate. I'm mostly just curious as to why that is. However, I am biased in general towards only using…

professor bigglesworth
- 560
- 4
- 16
2
votes
1 answer
Using Matrix and Vector types in Math.Net MultipleRegression
I've declared a MathNet Matrix and Vector type as follows ...
Matrix X = Matrix.Build.Dense(sampleSize,2);
Vector yObserved = Vector.Build.Dense(sampleSize);
but when I call ...
Vector p =…

superticker
- 41
- 5
2
votes
1 answer
MathNet.Filtering Bandpass parameters
I'm trying to use MathNet filters to apply a band pass filter to a signal; I'm using the MathNet.Filtering.OnlineFiter.CreateBandpass(..) method, to be precise.
The problem is, I'm not getting the expected results and I'm getting confused by the…

motoDrizzt
- 1,082
- 11
- 23
2
votes
1 answer
How do I calculate the sqrt in MathNet.Symbolics
I'm using the MathNet.Symbolics library to simplyfy expressions like this :
string f = Infix.Print(Infix.ParseOrThrow("A+5*2"))
This works as expected (f = A+10) but trying to get the root of a number is a lot harder than I expected. For example…
user4543491
2
votes
0 answers
N-sample test for equality of proportions with continuity correction in C#
I want to calculate chi square and p-value for proportions equality.
I would prefer to use standard library like math.net but not sure how to do it using documentation…

H Pan
- 21
- 1
2
votes
1 answer
How can I compute the autocorrelation of a sample using Math.NET
Apparently Math.Net library does not contain a function for obtaining the autocorrelation of a sample.
How can this be achievied using the same library?

Jonas
- 1,365
- 3
- 21
- 39
2
votes
1 answer
Difference between Double.Vector and Vector
I've got problem with types while working with vectors in MathNet.
I'm using
using MathNet.Numerics.LinearAlgebra.Double;
so all Vectors and Matrices are type Double.Vector etc.
But for example if I want to get particular row from matrix…

Dan
- 77
- 7
2
votes
2 answers
Math.Net system of linear equations with a 0 value in solution
I am trying to solve a Matrix in Math.Net when one of the actual solutions to the matrix is 0, but I am getting -NaN- as results.
Here is an example matrix which has already been reduced for simplicity.
1 0 1 | 10000
0 1 -1 | 1000
0 0 0 |…

foreach_potato
- 23
- 5
2
votes
1 answer
TriangularSolver in Math.Net
Are any of the existing solvers equivalent to this TriangularSolver from the Java ejml library?
In particular I need a function that solves the lower triangular matrix using forward substitution.

luisv
- 471
- 4
- 6
2
votes
2 answers
How to properly run an FFT on a windowed set of data from a pure sine wave
I am trying to experiment with Math.Net, specifically the FFT portion. I am attempting to extract the frequency domain information from a pure sine wave. Here is the code:
private void Form1_Load(object sender, EventArgs e)
{
…

Matthew Goulart
- 2,873
- 4
- 28
- 63
2
votes
1 answer
How to initialize Vector from DenseVector in Math.NET?
Latest version (3.13) of Math.Net fails to run the following C# code:
Vector a;
Vector b = new DenseVector(a);
it shows the following error message:
cannot convert from 'MathNet.Numerics.LinearAlgebra.Vector' to…

atrash
- 865
- 1
- 8
- 11
2
votes
2 answers
Math.NET CryptoRandomSource Next is Biased
I am developing a gaming platform that is subject to heavy regulatory scrutiny. I chose Math.NET because it seemed like a good fit. However I have just received this comment back from our auditors.
Comments please if this is accurate and how it can…

IntoNET
- 456
- 2
- 14
2
votes
2 answers
What is the MathNet equivalent of numpy array[0,:] *= 1.23
I have to port some python (numpy) code in c# (MathNet).
I can write in python:
mtx = np.array([[0,1,2],[3,4,5]])
mtx[0,:] *= 1.23 #multiply all elements in row 0 by 1.23
How can I do this in MathNet? Is there better (faster) solution than:
…

ThWin
- 33
- 4
2
votes
2 answers
MathNumerics.LinearAlgebra Matrix.mapRows dimensionality issues
So I have verified that the starting version of what I'm trying to do works, but for some reason when putting it into the Matrix.map high order function it breaks down.
Here is the failing function:
let SumSquares (theta:Vector)…

David Crook
- 2,722
- 3
- 23
- 49
2
votes
1 answer
How to set double precision in MathNet.Symbolics Evaluate function?
I have a Dictionary values and values precision is important for me. I have a string Formula that Infix can Parse. I wonder how to do something like this:
var expr = Infix.ParseOrThrow(m.Formula);
var result =…

DuckQueen
- 772
- 10
- 62
- 134