This tag doesn't currently have an excerpt. Help contribute by writing one
Questions tagged [math.net]
256 questions
1
vote
0 answers
Converting Excel's LINEST to C# - Specifically the Standard Error of Slope
I am working on converting the LINEST function in Excel to C#. I am having a hard time calculating the standard error of the slope.
The function I am working on converting is the following:
=INDEX(LINEST(known_ys,known_xs,TRUE,TRUE),2,1)
I am…

Duffp
- 5,878
- 2
- 15
- 16
1
vote
1 answer
How to use a Gamma distribution in MathNet.Numerics
I want a distribution density curve that rises steeply from zero to its peak and then falls shallowly. At StatDist, a website where statistical distributions may be plotted online, I achieved this with a Gamma distribution, for example by specifying…

SimonOR
- 151
- 6
1
vote
1 answer
How to get the slope and intercept when using Fit.LineFunc from Math.net
I'm using Math.net to generate a lineal function from a set of data points, the code is simple:
Func linetrend = MathNet.Numerics.Fit.LineFunc(x, y);
I can evaluate later in any point using linetrend, but I want to extract the slope…

calarez
- 55
- 5
1
vote
1 answer
Using Math.NET Numerics is it possible to generate a normally distributed sample with upper and lower bounds?
It's very easy to generate normally distributed data with a desired mean and standard distribution:
IEnumerable sample = MathNet.Numerics.Distributions.Normal.Samples(mean, sd).Take(n);
However with a sufficiently large value for n you will…

Ben
- 5,525
- 8
- 42
- 66
1
vote
0 answers
How to activate Intel MKL in Azure function
I have a piece of C# software that runs in an Azure Function. Using the Ax=b solver (A.solve(b)) takes a lot of time. I tried to speed up the process by including the MathNet.Numerics.MKL.Win NuGet package and calling…

pjb
- 11
- 1
1
vote
1 answer
How to improve matrix computing performance in C#?
I'm working on a Finite element system based on Unity. I used CSparse.NET and Math.NET. I found that the bottleneck is matrix processing and computing, such as Multiply(), Get_Item() and CompressedColumnStorage.OfIndexed(). It means that matrix…

Albert Li
- 31
- 5
1
vote
1 answer
How to sample a multivariate normal distribution in Math.NET?
Am I missing something obvious here? Math.NET has a wealth of probability distribution sampling classes but no multivariate normal distribution. It has Normal and MatrixNormal classes — is there an easy way of adopting either of those to sample a…

Don Reba
- 13,814
- 3
- 48
- 61
1
vote
0 answers
Is it possible to parse min and max functions?
As per title, is it possible to parse and evaluate the min and max functions?
As example:
Expression e = Infix.ParseOrThrow("min(L,B)");
It throws:

Michele mpp Marostica
- 2,445
- 4
- 29
- 45
1
vote
0 answers
Math.Net Symbolics: How to simplify an expression like: "0.0+1.0*x -2*y^1.0"
I'm looking for a method in Math.Net Symbolics that can eliminate terms that are not needed for UI purposes.
Since these expressions are generated automatically I can't control some of the artifacts it creates.
I noticed that Expand() flattens the…

blit
- 396
- 5
- 12
1
vote
0 answers
Automated 1D Linear Interpolation
I'm importing a curve per points from a Datagridview. In order to correct this curve with an algorythm, I have to rebuild it, to have a larger number of points. To do this I have to use a 1D linear interpolation calculus. In order to make this…

telemaco10399
- 39
- 5
1
vote
2 answers
MathNet.Symbolics Algebraic.Expand in descending order?
With MathNet.Symbolics library, I try to print a polynomial with a descending power order:
using mse = MathNet.Symbolics.Expression;
using MathNet.Symbolics;
public void Symbolics()
{
var x1 = 2;
var y2 = 3;
var x2 = 4;
//…

kizzer
- 150
- 7
1
vote
2 answers
Matrix Multiplications: Vector to Matrix Conversion
I had just started to learn about Math.NET Numerics and find this useful and powerful for Matrix Multiplication purpose. It's quite challenging for me now as I had just started to learn C#, I hope I could find some solutions here to assist me…

YPCor
- 43
- 6
1
vote
1 answer
Math.Net SVD Algorithm throws Errors for Large Matrices
I’ve been using the intel MKL implementation of SVD() through Math.NET numerics (https://numerics.mathdotnet.com/). I’ve had success running the algorithm. However, for very large matrices (in this case 64,000 x 500), I get the following…

George Jordan
- 11
- 1
1
vote
0 answers
C# Math.Net - How to properly set parameters of Fit.Curve
I'm trying to fit a curve for data like
What I've got so far:
public IList Points { get; private set; }
public MainViewModel()
{
Points = new List
{
new DataPoint(38 , 6.5 ),
new…

MarkusEgle
- 2,795
- 4
- 41
- 61
1
vote
0 answers
In Math.NET Symbolics, ArcCos function with SymbolicExpression
I'm doing part of my A-Level college project in VB.NET and am using the Math.NET Symbolics package.
I have MathNet.Symbolics.SymbolicExpresssion imported as Expr.
I have variables defined as type Expr (SymbolicExpression) and I want to conduct an…

Cheesecake
- 35
- 1
- 5