Questions tagged [math.net]

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

256 questions
0
votes
1 answer

Multiple Regression with math.net

Hello I am trying to get multiple regression with math.net and I am a little confused. var xdata = new DenseMatrix( new double[,]{{1, 36, 66, 45, 32}, {1, 37, 68, 12, 2}, {1, 47, 64, 78, 34}, {1, 32, 53, 56,…
user1221399
  • 41
  • 2
  • 11
0
votes
1 answer

Build failing on sn.exe

I'm trying to build a (seemingly unmaintained) free-software project that's written in C# (Math.NET Iridium). The build fails on this error: Error 1 The command ""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\sn.exe" -Vr…
dharmatech
  • 8,979
  • 8
  • 42
  • 88
0
votes
1 answer

Custom type marshalling in IronPython

I am working on a numerical program that runs in C# based on Math.NET with scripting abilities using IronPython. I'd like to have it work so that the Math.NET arrays are converted to NumPy objects as they cross between C# and Python. There is a…
John
  • 791
  • 1
  • 6
  • 22
0
votes
1 answer

multivariate normal distribution with Math.net

I am plugging Math.net to make some sampling and I just dont get the way it is supposed to work... What am I missing here ? let mm = Double.DenseMatrix.Identity(2) let ida = Double.DenseMatrix.Identity(2) let idb = …
nicolas
  • 9,549
  • 3
  • 39
  • 83
0
votes
1 answer

Notation for matrix indexing in Math .NET

When using a DenseMatrix from Math .NET, and I want to access the second column, third row, do I write matrix[1,2] or matrix[2,1] in other words, does the first index determine the row or the column?
dmi_
  • 1,187
  • 2
  • 12
  • 26
-1
votes
1 answer

Can I change a matrix in MathNet Numerics Library to an array?

I am working on a program which needs matrix operation. I decided to use Math.NET Numerics library. I have a Matrix and I want to change one of it's values, but I don't know how. My question is, can we have a Matrix as an array? Can we transform a…
janbazi
  • 49
  • 1
  • 4
-1
votes
1 answer

Does Math.Net have a LogSumExp method?

I'm new to Math.NET Numerics and I'm looking for an implementation of LogSumExp, is there an existing function for that?
dontloo
  • 10,067
  • 4
  • 29
  • 50
-1
votes
1 answer

Hann window starts and ends with values that don't seem to make sense

I am playing around with mathdotnet and am experimenting with the different windows for use in FFTs. I am specifically curious about the Hann window (though i'm sure this applies to the others as well). When I generate a Hann window of, say, 2048…
Matthew Goulart
  • 2,873
  • 4
  • 28
  • 63
-2
votes
1 answer

Does Fit.Line use least squares

The method Fit.Line - what algorithm does it use to determine the parameters? Hopefully least squares.
David Thielen
  • 28,723
  • 34
  • 119
  • 193
-2
votes
1 answer

A simple Cosine similarity

Vectors contains one column, m rows : each row contains an array of n floats; I want to have a m x n matrix, transpose it and do there product I'm using C# Also, I read this from official documentation…
-2
votes
2 answers

solve an underdetermined linear equations system in c#

I need to solve an underdetermined linear equations system in c#. For example Underdetermined linear equations system: x + 3 = y + z x + w = 2 Result: x = r1 y = -r2 + r1 + 3 z = r2 w = 2 - r1 and now I initialize r1 and r2 with 3 and 4 to…
-2
votes
1 answer

Cross correlation using Math.Net

I tried to use solution suggested in this answer: cross-correlation using mathdotnet but I always get maximum correlation at lag 0. My source data has definitely significant lags that happen once in a while. When I run this in Python using Pandas…
Alex Michel
  • 416
  • 3
  • 13
-2
votes
1 answer

Find intersection of two fit

I use CubicSpline function from math.net to fit a series of data. for example this. double[] x8 = { 2.25, 2.65, 3.12, 3.56, 3.95, 4.32, 4.59, 4.78 }; double[] y8 = { 124, 117, 108, 95, 79, 64, 48.5, 36 }; CubicSpline CSpline =…
AfshinBrr
  • 1
  • 1
-2
votes
1 answer

Using dictionary object

I am developing a Calculations library in c# using Math.Net library. I have several methods in the library that would be receiving IEnumerable double list of values. I need to calculate the annual and monthly values and return those to the caller…
Tom
  • 8,175
  • 41
  • 136
  • 267
-2
votes
1 answer

Check null or empty IEnumerable in C#

What is the best way to check null or empty for IEnumerable in C#? What I have tried so far is return returnList != null && returnList.Any(); but I get a message that this expression will always return true. Full method: public double…
Tom
  • 8,175
  • 41
  • 136
  • 267
1 2 3
17
18