Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Fsharp: Read csv into matrix

$
0
0
Hi

With the "MathNet.Numerics.Data.Text" and "System.Globalization" namespaces open, try:
let matrix = DelimitedReader.ReadFile<float>("data.csv", false, ",", true, CultureInfo.InvariantCulture)
In addition to ReadFile there is also Read to read from a TextReader (e.g. a StringReader if you have the content already as string) and ReadStream to read from a stream.

Thanks,
Christoph

Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>