Questions tagged [math.net]

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

256 questions
1
vote
2 answers

Math.net how to create generic ToString() override

Math.net has ToString() implementations for most data collections. When used in classes these need to be overridden. I know how to do this for one variable, but how to make it generic for all variables of the same type? My class definition with one…
jdelange
  • 763
  • 2
  • 10
  • 22
1
vote
1 answer

Matrix multiplication with custom function

Using the Matrix from Mathdotnet.Numerics, I am willing to apply a custom aggregating function for each cell of the resulting matrix of a multiply operation. For instance, on a 2x2 matrix: My will is to have a specific f function (the one…
Askolein
  • 3,250
  • 3
  • 28
  • 40
1
vote
0 answers

Cant apply Distinct on List of matrices mathdotnet C# mathdotnet

I have a List of Matrix (Math.net.Numerics)on which I want to find if all are different. I did List.Distinct().Count(). But in a particular case the List has only 1 3x5 matrix and Applying Distinct on the same fetches me an error. I see that the…
mithun
  • 142
  • 2
  • 16
1
vote
1 answer

MathDotNet: Sampling from distributions without casting

How does one sample from a distribution in MathDotNet without having to cast to the specific distribution? I have a distribution d which could be any random variable, being passed around as an IDistribution. Now, I wish to sample from it. I want…
user650261
  • 2,115
  • 5
  • 24
  • 47
1
vote
1 answer

Probleme with portable class and MathNET spatial

I try to install Math.NET Spatial in a portable class library in Visual Studio 2013 but I get an error. I get this following error in the NuGet Console : Install failed. Rolling back... Install-Package : Could not install package…
1
vote
1 answer

Large Sparse Matrix Calculation - MathNet Numerics

I started using the MathNet Numerics Library and I need it to calculate the largest Eigenvalues corresponding to their Eigenvectors of my adjacency matrix. When using large amount of points my adjacency Matrix gets quite big (i.e. 5782x5782…
GeoGecco
  • 437
  • 4
  • 21
1
vote
2 answers

Mathnet numerics indexing parts of a matrix

Using Math.Net Numerics, how can I index parts of a matrix? For example, I have a collection of ints and I want to get a submatrix with the rows and columns chosen accordingly. A[2:3,2:3] should give me that 2 x 2 submatrix of A where the row index…
elina
  • 11
  • 1
  • 3
1
vote
2 answers

Inverse Chi Square Function in C#

this is the equation of what I want to implement: I have already made the inside up to comma. But I have really no idea how to implement C^-1 with 2n degrees of freedom, is there any function in Math class? Looking at the description on the wiki I…
1
vote
2 answers

How can I convert an F# (double -> double) to Func?

I'm using MathNet.Numerics.LinearAlgebra to build a library. I need to apply a user-specified function to every element of the matrix, for which I know I can use Map: open System open MathNet.Numerics.LinearAlgebra open…
Shredderroy
  • 2,860
  • 2
  • 29
  • 53
1
vote
1 answer

Mathnet errors when trying to solve a multiple regression equation

I have the following code and I'm trying with 2 different methods to solve a multiple regression equation. The arrays are too long to list but the count on each one matches at 5704 lines. I'm getting the following errors when I try to run the…
DarthVegan
  • 1,719
  • 7
  • 25
  • 42
1
vote
0 answers

Mahalanobis distance in math.net

I am new to math.net library. I need to find mahalanobis distance but I am not able to find any specific function in the description Is there any function available in math.net for Mahalanobis distance computation? Thanks in advance
user3755708
1
vote
1 answer

Representing fractions in MathNet matrices

I am trying solve some matrices calculations using the MathNet.Numericslibraries. It all works fine with double numbers. However now I want to represent numbers as fractions and want to get the answers to the calculations as fractions. How can I do…
Herne
  • 77
  • 6
1
vote
1 answer

Power Law distribution for a given exponent in C# using MathNet

I am currently working on a project where I need to generate multiple values (floats or doubles preferably) that follow a power law distribution with a given exponent! I was advised to use the MathNet.Iridium library to help me. The problem I have…
Eric Tobias
  • 3,225
  • 4
  • 32
  • 50
1
vote
1 answer

Which Formula/Function To Use to Rotate a Series Of Points

What mathematical formula can I use to rotate a series of 3d Vectors about a given 3d Vector? I am attempting to use the 3rd party library: Math.NET Iridium to calculate my rotations but I dont know what formulas or mathematical concepts I should…
sazr
  • 24,984
  • 66
  • 194
  • 362
1
vote
1 answer

How to format DelimitedReader in MathNet Numerics to read in empty strings as zero?

I'm reading from a CSV file that has a lot of empty cells and I want to read in the empty cells as zero. Is there a way to do this using DelimitedReader? I'm looking at the documentation for DelimitedReader and I see that it takes four…
covfefe
  • 2,485
  • 8
  • 47
  • 77