问题标签 [mathnet-numerics]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
matlab - MathNet.Numerics vs Matlab Forward Fourier 答案不匹配?
我有点卡在这里。MathNet Numerics 的 Forward Fourier 结果似乎比 MATLAB 的结果少了一半。
WindowsPhone 8 上的 MathNet.Numerics
原始信号
(5, 0) (6, 0) (1, 0) (2, 0) (5, 0)
正向傅里叶
( 8.4970583144992 , 4.96506830649455E-16) ( 2.67082039324994 , -0.162459848116454) ( -1.32917960675006 , -0.688190960235587) ( -1.32917960675006 , 0.688190960235586) ( 2.67082039324994 , 0.162459848116454)
逆傅里叶
(5, -1.24126707662364E-15) (6, 0) (1, 1.78742459033804E-15) (2, 9.93013661298909E-16) (5, 7.94410929039127E-16)
Matlab FFT和IFFT
原始信号
x=[5,6,1,2,5]
正向傅里叶 fft(x)
答案= 19.0000 5.9721 - 0.3633i -2.9721 - 1.5388i -2.9721 + 1.5388i 5.9721 + 0.3633i
逆傅里叶ifft(ans)
5.0000 6.0000 1.0000 2.0000 5.0000
有什么想法我在这里做错了吗?
c# - C# 中的多元线性回归
我想在 C# 中进行多元线性回归。我正在尝试使用 MathNet.Numerics 来实现这一点,但我不断收到错误消息“矩阵尺寸必须符合 2x3”。
c# - 使用几何分布的随机数生成器
我需要一个使用几何分布的随机数生成器
http://en.wikipedia.org/wiki/Geometric_Distribution。
我试过MathNet.Numerics.Distributions
:
但测试只给出负数。有人发现我的错误或就其他采样几何分布的方法给我建议吗?
f# - MathNet.Numerics 未使用 Mkl 本机提供程序
我有一个将 MathNet.Numerics 用于线性代数例程的 F# 项目。
我已将以下代码放在 F# 模块中:
但是,无论我启用还是注释掉这行代码,我看到的矩阵乘法时间都保持不变。
我已经安装了 Mkl 提供程序 NuGet 包,如下所述:http: //christoph.ruegg.name/blog/mathnet-numerics-with-native-linear-algebra.html
并确保将这两个dll复制到bin目录:libiomp5md.dll MathNet.Numerics.MKL.dll
关于如何检测是否实际使用了本机提供程序的任何想法?
c# - 如何将 var 声明的变量传递给方法(MathNET)
我想将变量类型的 var 传递给方法,其中 var 是一些分布
例如:
和方法:
c# - How to get vector magnitude using MathNET.Numerics?
I'm trying to get the magnitude of a vector and I tried using the L2Norm()
method but there was a red line under it stating that MathNet.Numerics.LinearAlgebra.Double.Vector
does not contain a definition for L2Norm
and no extension method L2Norm
accepting a first argument of type MathNet.Numerics.LinearAlgebra.Double.Vector
could be found (are you missing a using directive or an assembly reference?'
I put,
At the top so I'm not sure why it's still showing an error. Any ideas on what the issue might be?
c# - 使用 Math.Net 的基于指数的曲线拟合
我对 Math.Net 库非常陌生,并且在尝试基于指数函数进行曲线拟合时遇到了问题。更具体地说,我打算使用此功能:
使用 MATLAB 我得到了很好的结果,如下图所示:
MATLAB 计算以下参数:
是否可以使用 Math.Net 实现这些结果?
c# - 无法使用 Math.NET Numerics 从矩阵中删除行
我对 Math.NET Numerics 有一个奇怪的问题。假设我有一个matrix<double>
很好的实例化和填充(我通过将其写入文本文件来验证),其大小为(949 x 30)。我想要的只是从这个矩阵中删除一行。但似乎我无法删除我想要的所有行。我可以删除我想要的所有列,但我只能删除前 30 行(也许这与 30 列的数量有关)。查看我的代码:
有人知道发生了什么吗?
我想我已经测试并验证了关于 mat
. 它实际上是一个 (949 x 30) 矩阵,并且充满了双精度值。
编辑
我认为这是图书馆的问题。该函数可能没有很好地实现,并且仅适用于方阵或非方阵的方子矩阵的行/列。
c# - 编译器错误调用 MathNet Numerics DelimitedWriter.WriteFile
我正在尝试使用 DelimitedWriter 将 DenseMatrix 对象写入 csv 文件,如下所示:
会出现一条红线,表示方法的类型参数不能从用法中推断出来,并明确指定类型参数。所以我试着这样做:
我得到了“最好的重载匹配......有一些无效的论点”。
和这个:
我得到的 originalData 不能与类型参数一起使用。我还尝试将 originalData 转换为 Matrix(而不是 DenseMatrix),但这也不起作用。我不确定我在这里缺少什么。有任何想法吗?