This tag doesn't currently have an excerpt. Help contribute by writing one
Questions tagged [math.net]
256 questions
0
votes
1 answer
Fourier transformation with mathdotnet in F#
I am trying to use the Math.NET numerics implementation of the FFT algorithm, but I must be doing something wrong because the output is always unit
The following is the the setup:
open MathNet.Numerics
open MathNet.Numerics.Statistics
open…

user1129988
- 1,516
- 4
- 19
- 32
0
votes
1 answer
Calculate m 1 ,m 2 for y=m 1 x 1 +m 2 x 2 using Math.NET
Given these values:
x1 = {1, 3, 6, 8}
x2 = {2 ,8, 5, 10}
y = {8.6, 30.8, 34.1, 53.8}
And this formula
y = m1 * x1 + m2 * x2
Is there a way to determine m1 and m2 using Math.NET or an equivalent C# library?
(The expected result for these…

Jonathan Allen
- 68,373
- 70
- 259
- 447
0
votes
1 answer
Floor and Truncate different when debugging
I'm using Math.Net to calculate the determinate of basic matrices for a larger project. As part of my unit tests I was having issues that converting a float to an int was different when debugging the test. It seems attaching the debugger produces…

Jonathan
- 585
- 7
- 27
0
votes
1 answer
MathNet Matrix MapIndexInplace confusion about arguments
The Matrix function MapIndexInplace is documented to take a Func (int, int, float, float). I don't understand what the second float value is. Can anyone explain?
0
votes
2 answers
How to create a submatrix skipping a row and a column using Mathnet.numerics library?
I am trying to code to obtain minors of different elements in a matrix. I am using Mathnet.numerics library. I see the library has submatrix method where I need to input rowindex and rowcount. But for my case I need to create submatrix by skipping…

Farhan Rahman
- 21
- 7
0
votes
1 answer
Using Math.NET to calculate students-t confidence interval that the mean of a set of data is greater than 0
If a have a sample of data in c#, let's say a List.
How would I use Math.Net to calculate the probability that the mean of the data is greater than zero, using the students-t distribution. I can see Math.Net has a set of functions pertaining to…

Craig
- 413
- 7
- 16
0
votes
2 answers
Difference between Matrix, SparseMatrix, and DenseMatrix in MathNet Numerics?
I understand that some matrices have a lot of data, while others have mainly 0's or are empty. But what is the advantage of creating a SparseMatrix object to hold a sparsely populated matrix over creating a DenseMatrix object to hold a sparsely…

covfefe
- 2,485
- 8
- 47
- 77
0
votes
2 answers
Compiler error calling MathNet Numerics DelimitedWriter.WriteFile
I'm trying to write a DenseMatrix object to a csv file using DelimitedWriter like so:
DelimitedWriter.WriteFile(originalData, "written.csv", ",");
A red line would appear saying that the type arguments for the method cannot be inferred from the…

covfefe
- 2,485
- 8
- 47
- 77
0
votes
1 answer
Bessel function of first kind from math.net
I need to use the bessel function of the first kind in unity3d (using c#). After trying to use the mathnet.numerics .dll in unity I found many errors apparently due to unity3d not supporting .NET 4. I decided to then use jetbrains dotPeek decompiler…

KMoore
- 171
- 1
- 10
0
votes
1 answer
How to get vector magnitude using MathNET.Numerics?
I'm trying to get the magnitude of a vector and I tried using the L2Norm() method but there was a red line under it stating that MathNet.Numerics.LinearAlgebra.Double.Vector does not contain a definition for L2Norm and no extension method L2Norm…

covfefe
- 2,485
- 8
- 47
- 77
0
votes
1 answer
Multiple Linear Regression math.net 2.6 with Fit.LinearMultiDim
Reffering to the question:
Multiple Regression with math.net
@christoph-ruegg
Can you provide me an example of resolving regression using Fit.LinearMultiDim.
var xdata = new DenseMatrix(
new double[,]{{1, 36, 66, 45, 32},
…

Piotr Leniartek
- 1,177
- 2
- 14
- 33
0
votes
1 answer
Linear Algebra MatrixMultiply method
EDIT:
After fixing the syntax error and working with this algorithm I found the MKL provider is not the matrix multiplication needed. This algorithm simply multiplies element by element and does not compute the dot(row_n,column_n) as I had…

Felix Castor
- 1,598
- 1
- 18
- 39
0
votes
1 answer
Extract row from Deedle and convert to Matrix
I am trying to extract a row from a Deedle Frame and convert it to a flat (1x4) DenseMatrix.
All missing values have been dropped and the values in the Frame are numerical.
My code:
let matrix =
let curr = seq { yield…

NoIdeaHowToFixThis
- 4,484
- 2
- 34
- 69
0
votes
1 answer
MathNet.Numerics operation return types
I'm using MathsNet.Numerics lib. I want to do operations on Complex Vectors i.e. I'm
using MathNet.Numerics.LinearAlgebra.Complex
which gives me Vector as Complex version of MathNet.Numerics.LinearAlgebra.Generic.Vector
Operatations on Vectors…

Ricibob
- 7,505
- 5
- 46
- 65
0
votes
6 answers
Build a project with Math.net Numerics and C#
I have no experience over C# and i do not know how to use those binaries i downloaded there :
http://mathnetnumerics.codeplex.com/releases/view/101319
How do i include and build those in my project so i can make a standalone when the project is …

Fawar
- 735
- 2
- 11
- 32