Questions tagged [math.net]

This tag doesn't currently have an excerpt. Help contribute by writing one

256 questions
1
vote
0 answers

Multiple linear regression with accord framework

My Problem I can't get expected results from a multiple linear regression calculation in accord framework and math.net I'm trying to write a little program to calculate regression constants to predict the lifetime of a product by providing test…
Vrt
  • 11
  • 3
1
vote
1 answer

What is the unit for MathNet distance calcuations?

Given the following code I would like to compute the distance in Miles or Kilometers: Point2D point1 = new Point2D(47.6062, -122.3321); // Seattle Point2D point2 = new Point2D(37.7749, -122.4194); // San Francisco double distance =…
Kyle Barnes
  • 729
  • 3
  • 13
  • 22
1
vote
2 answers

Create matrix from array with Math.Net

I've a list made by sublists of numbers. This is named biglist and it is: biglist[0] = { 1, 2, 3, 4, 5 }; biglist[1] = { 5, 3, 3, 2, 1 }; biglist[2] = { 3, 4, 4, 5, 2 }; Now I want to create a matrix using these sublists where each sublist…
1
vote
1 answer

How to return estimate and intercept for multiple regression in Math.Net Numerics?

public static Vector FindBestMRSolution(Matrix x, Vector y) { return MultipleRegression.NormalEquations(x, y); } That is my code so far but that function only returns with the coefficients for the multiple regression but my question is how I…
DarthVegan
  • 1,719
  • 7
  • 25
  • 42
1
vote
1 answer

Is there a way to suport 0x0 Matrix on Math.Net?

I'm using a Matrix Nx2 to store a list of Points that form a polygonal. I have a function that return a submatrix Nx2 containing points that are above a line with a simple equation, y = 6, for example. The problem is sometimes the submatrix does…
David Sousa
  • 71
  • 10
1
vote
0 answers

What is the difference between Mathnet.Numerics and Mathnet.Numerics.Signed?

There are two different nuget packages, MathNet.Numerics and MathNet.Numerics.Signed. How are they different? And does signed package include all features from MathNet.Numerics?
ozgur
  • 2,549
  • 4
  • 25
  • 40
1
vote
2 answers

built-in function diff() available for vector in MathNet?

I'm new to MathNet and implementing a code in C#.Net. There is a vector: var X = new DenseVector(new double[] { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150 }); I need to find Y = **diff(X)** calculating differences between…
user2587
  • 149
  • 10
1
vote
1 answer

F#: How to print a matrix?

I'm using Math.Net and trying to create a matrix with a random Gaussian distribution. Then I trying to print the matrix but can't: Successive arguments should be separated by spaces or tupled, and arguments involving function or method…
anatol
  • 1,680
  • 2
  • 24
  • 47
1
vote
2 answers

Creating anti-diagonal identity matrix

I have an image that is stored in a DenseMatrix, using MathNet Numerics. For rotating the image by 90 degrees counter-clockwise I want to get the transpose and then flip the result vertically by multiplying by the anti-diagonal identity matrix. Is…
tde
  • 150
  • 13
1
vote
0 answers

Implicit multiplication with Math.NET Infixes

Is there a way to force Infix.ParseOrThrow and related functions from the Math.NET Symbolics library to allow equations such as "4x + 3" instead of requiring the input to be "4*x + 3"?
user7706068
1
vote
1 answer

histogram categorized data in c#

I am using numerics.mathdotnet to calculate the histogram of sorted data. My dataset looks as following row1,a,b,c row2,x,y,z ... and my histogram is calculated, let's say on column 4 which has [c,z,...]. After the histogram generation and plotted…
Ajinkya Kale
  • 127
  • 1
  • 12
1
vote
1 answer

How to apply a Zero-Phase filter using MathDotNet library?

Is there a specific function or class in the Math.NET library to obtain a Zero-Phase (non causal) IIR filter? If not, how can this be achieved using current functions? I believe this can be obtained by filtering the signal and then filtering the…
Jonas
  • 1,365
  • 3
  • 21
  • 39
1
vote
0 answers

#MathdotNet How to find the parameters of Herschel-Bulkley model through Nonlinear Regression in Math.NET?

First, I would like to thank everyone involved in this magnificent project, Math.NET saved my life! I have few questions about the linear and nonlinear regression, I am a civil engineer and when I was working on my Master's degree, I needed to…
1
vote
1 answer

How can I get the final result using MathNet.Symbolics?

I am trying to make a method that will calculate a determinant. For that I am using the MathNet.Symbolics library. All good until I run into a little problem. I was trying to get the final result from the formula of a determinant and after I used…
Noobie
  • 45
  • 8
1
vote
1 answer

Polynomial order 3-5 with Math.Net C#

I have arrays of X and Y. Using Excel I was able to gain certain polynomial fit of orders 3-5. I decided to make a code that will select the lowest order of the fit in the way if GoodnessOfFit.RSquared(New)/GoodnessOfFit.RSquared(Previous)< 1.05…