Christoph Ruegg
af476c29f1
LA: matrix construction rework #104
14 years ago
Christoph Ruegg
f8c7e4a68d
Comments: fix some inline xml doc; Drop redundant resources in Numerics.IO
14 years ago
Christoph Ruegg
ef38c4508f
Distributions: consistent sample methods for discrete distributions #32
14 years ago
Christoph Ruegg
6c32ba172b
Distributions: consistent sample methods for continuous distributions #32
14 years ago
Christoph Ruegg
3ab191f97c
Distributions: fix geometric sampling #31
14 years ago
Christoph Ruegg
f8792b77f4
Dist: StudentT density more robust for very large degrees of freedom #44
14 years ago
Christoph Ruegg
6f122ed0b6
LA: avoid some redundant range checks (perf)
14 years ago
Christoph Ruegg
d15f592f3e
Normal Distribution: fix Variance property setter
The variance setter was passing the variance as standard distribution,
instead of its square root. Reported by Peter126 at Codeplex.
15 years ago
seahearman
01a26e9cb2
I want to sample a vector from a multivariate normal distribution. According to the Help file, I should use the method Sample(), but I found out that I can only sample a square matrix from this method, that is when I use the following code:
var NRow = 3;
var NCol = 3;
var m = new DenseMatrix(NRow, NCol);
var v = new DenseMatrix(NRow);
for (var i = 0; i < NRow; i++)
{
v[i, i] = 1;
}
var k = new DenseMatrix(NCol);
for (var i = 0; i < NCol; i++)
{
k[i, i] = 1;
}
var NewMatrix = new MatrixNormal(m, v, k);
var Sampleone = NewMatrix.Sample();
It is fine, but when I change NRow=4, (but keep NCol=3) it does not work. I checked the code, I think the problem is in MatrixNormal.cs Line 286:
var vector = SampleVectorNormal(rnd, new DenseVector(n * n, 0.0), vki);
but I think it should be:
var vector = SampleVectorNormal(rnd, new DenseVector(n * p, 0.0), vki);
15 years ago
Andrew Kazyrevich
622e5277f3
Minor improvement. Exception messages for matrix dimensions now tell you the values (in addition to a mere 'dimensions must match' we had before).
15 years ago
Till Hoffmann
94c57bdf2d
Extended the chisquare distribution to support the generation of samples for non-integer dof.
15 years ago
Christoph Ruegg
4455e9f6e1
Fixes dirichlet distribution (multivariate beta) density function (pdf). Closes gh-9.
15 years ago
Marcus Cuda
d0e926f1d9
examples: added Andriy's examples and bug fixes
16 years ago
Marcus Cuda
ad8f72295a
doc: fixed xml doc errors and updated SHFB config
16 years ago
Jurgen Van Gael
1b603eb841
Some small documentation changes.
16 years ago
Marcus Cuda
cce4db3843
merged Andriy's distribution additions and corrections
16 years ago
Abratiychuk
e21559ac10
Verified Distributions, added several properties, fixed several properties.
16 years ago
Marcus Cuda
82dec46518
merged Andriy's EVD improvements and Poisson distribution
16 years ago
Marcus Cuda
4fe613c977
distributions: Vladmir's first take at the distributions
16 years ago
Christoph Ruegg
722b9736c4
Numerics: udated headers (sorry for the code churn..)
17 years ago
Jurgen Van Gael
666c02ff56
Fixed bug in NormalGamma distribution.
Added documentation to StudentT distribution.
17 years ago
Jurgen Van Gael
f612db93a1
Fixed a bug in the StudentT sampler.
Reworked the unit tests for sampling methods to be more accurate.
17 years ago
Jurgen Van Gael
ad6cbbebd8
Added CumulativeDistribution for the StudentT distribution.
Added unit tests for the StudentT distribution.
Added sampling methods for the normal gamma distribution.
17 years ago
Jurgen Van Gael
35f24d1a4c
Removed redundant parameters in Dirichlet distribution unit tests.
Added unit tests for the NormalGamma distribution.
Expect different exception in Beta distribution unit tests.
17 years ago
Jurgen Van Gael
7045536a9c
Added unit tests for the NormalGamma distribution.
Added setters for MeanLocation and MeanScale.
17 years ago
Jurgen Van Gael
e3d4c58cdc
Added more unit tests for the StudentT distribution.
Added sampling methods for the StudentT distribution.
17 years ago
Jurgen Van Gael
c66021cd15
More unit tests for StudentT distribution.
17 years ago
Jurgen Van Gael
e0ba8f3aa7
Added NormalGamma distribution.
17 years ago
Jurgen Van Gael
ef7a3e8ee7
Added StudentT distribution.
17 years ago
Jurgen Van Gael
08b9820f8c
Fixed small inconsistency in the Normal API naming scheme.
Signed-off-by: Jurgen Van Gael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
5b3ee6feb6
Documentation fixes.
17 years ago
Jurgen Van Gael
3c3c41bdba
Added constructor for Categorical distribution from Histogram.
17 years ago
Jurgen Van Gael
a2610c7931
Fixed bugs after running the Sample unit tests.
Fixed some spelling mistakes.
Changed the Histogram implementation to make lowerbound exclusive and upper bound inclusive. [http://mathnetnumerics.codeplex.com/Thread/View.aspx?ThreadId=75115 ]
Changed the Histogram implementation so that returned buckets are copies (so that users can't start messing with upper and lower bounds).
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
72e771abbb
Fixed bugs in distributions.
17 years ago
Jurgen Van Gael
1ce3b42491
Some bug fixes on Binomial, Categorical and Multinomial distributions.
17 years ago
Jurgen Van Gael
d8b8520409
Added log-normal distribution.
Fixed some F# methods.
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
5f9611f1d8
Removed VectorNormal distribution awaiting Cholesky decomposition.
17 years ago
Jurgen Van Gael
aab6c0186b
Initial version of VectorNormal distribution.
17 years ago
Jurgen Van Gael
db4a70cbe4
Enabled Beta entropy test.
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
742da56f8c
Added discrete uniform distribution.
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
59ff93f1b0
Added incomplete Gamma functions.
Added incomplete Beta functions.
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Christoph Ruegg
3331edfcfc
functions: stable x -> exp(x)-1, used in weibull cdf
Signed-off-by: Christoph Ruegg <git@cdrnet.ch>
17 years ago
Jurgen Van Gael
2d5561539b
Added Multinomial distribution Added MersenneTwister Fixed namespace error in unit tests
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
f4d2fa0c76
Added Weibull distribution.
Fixed bug in Dirichlet distribution (when one of the dimensions is singular).
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
165942ea18
Bug fixes in Bernoulli distribution.
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
581e4b12bb
Fixed some style warnings.
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
c7db7cd590
Extended F# API (doesn't compile just yet).
Added Bernoulli distribution.
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
0a6abf73e7
Added Dirichlet unit tests
Fixed typo in CommonDistributionTests.cs
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Jurgen Van Gael
806f26e0af
Added Dirichlet distribution.
Signed-off-by: jvangael <jurgen.vangael@gmail.com>
17 years ago
Marcus Cuda
4ccfa45871
Project merging: renamed projects
Signed-off-by: Marcus Cuda <marcus@cuda.net>
17 years ago