Changeset 13368 for branches/PersistenceOverhaul/HeuristicLab.Random/3.3
- Timestamp:
- 11/24/15 17:08:13 (9 years ago)
- Location:
- branches/PersistenceOverhaul/HeuristicLab.Random/3.3
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Random/3.3/FastRandom.cs
r8928 r13368 1 using System;1 using System; 2 2 using HeuristicLab.Common; 3 3 using HeuristicLab.Core; … … 43 43 /// 44 44 /// </summary> 45 [StorableClass ]45 [StorableClass("E74F1CF3-D42B-4AC1-9863-9034C982F319")] 46 46 public sealed class FastRandom : Item, IRandom { 47 47 // The +1 ensures NextDouble doesn't generate 1.0 … … 218 218 // Increased performance is achieved by generating 4 random bytes per loop. 219 219 // Also note that no mask needs to be applied to zero out the higher order bytes before 220 // casting because the cast ignores thos bytes. Thanks to Stefan Trosch �tz for pointing this out.220 // casting because the cast ignores thos bytes. Thanks to Stefan Troschï¿œtz for pointing this out. 221 221 t = (x ^ (x << 11)); 222 222 x = y; y = z; z = w; -
branches/PersistenceOverhaul/HeuristicLab.Random/3.3/MersenneTwister.cs
r12012 r13368 42 42 /// </summary> 43 43 [Item("MersenneTwister", "A high-quality pseudo random number generator which creates uniformly distributed random numbers.")] 44 [StorableClass ]44 [StorableClass("9B6E06A4-D494-4BC6-B9A8-DC515ADCDB28")] 45 45 public sealed class MersenneTwister : Item, IRandom { 46 46 private const int n = 624, m = 397; -
branches/PersistenceOverhaul/HeuristicLab.Random/3.3/NormalDistributedRandom.cs
r12012 r13368 33 33 /// </summary> 34 34 [Item("NormalDistributedRandom", "A pseudo random number generator which uses the Ziggurat method to create normally distributed random numbers.")] 35 [StorableClass ]35 [StorableClass("D9DA2DBC-A969-4BCE-89D4-35750B8CA73A")] 36 36 public sealed class NormalDistributedRandom : Item, IRandom { 37 37 [Storable] 38 38 private double mu; 39 39 /// <summary> 40 /// Gets or sets the value for µ.40 /// Gets or sets the value for ï¿œ. 41 41 /// </summary> 42 42 public double Mu { … … 469 469 470 470 /// <summary> 471 /// Initializes a new instance of <see cref="NormalDistributedRandom"/> with µ= 0 and sigma = 1471 /// Initializes a new instance of <see cref="NormalDistributedRandom"/> with ï¿œ = 0 and sigma = 1 472 472 /// and a new random number generator. 473 473 /// </summary> … … 483 483 /// </summary> 484 484 /// <param name="uniformRandom">The random number generator.</param> 485 /// <param name="mu">The value for µ.</param>485 /// <param name="mu">The value for ï¿œ.</param> 486 486 /// <param name="sigma">The value for sigma.</param> 487 487 public NormalDistributedRandom(IRandom uniformRandom, double mu, double sigma) { -
branches/PersistenceOverhaul/HeuristicLab.Random/3.3/NormalRandomizer.cs
r12012 r13368 31 31 /// Normally distributed random number generator. 32 32 /// </summary> 33 [StorableClass ]33 [StorableClass("7659787C-2145-447B-AA01-EC4702FE99F3")] 34 34 [Item("NormalRandomizer", "Initializes the value of variable 'Value' to a random value normally distributed with parameters 'Mu' and 'Sigma'")] 35 35 public class NormalRandomizer : SingleSuccessorOperator { -
branches/PersistenceOverhaul/HeuristicLab.Random/3.3/RandomCreator.cs
r12012 r13368 32 32 /// </summary> 33 33 [Item("RandomCreator", "An operator which creates a new Mersenne Twister pseudo random number generator.")] 34 [StorableClass ]34 [StorableClass("8DDEF6F1-0E26-4B4B-8F42-4B6D27A843A7")] 35 35 public sealed class RandomCreator : SingleSuccessorOperator { 36 36 #region Parameter Properties -
branches/PersistenceOverhaul/HeuristicLab.Random/3.3/UniformDistributedRandom.cs
r12012 r13368 31 31 /// </summary> 32 32 [Item("UniformDistributedRandom", "A pseudo random number generator to create uniform distributed random numbers.")] 33 [StorableClass ]33 [StorableClass("6A6E7A7A-4AE2-40FD-9FD1-C821D0DC349D")] 34 34 public sealed class UniformDistributedRandom : Item, IRandom { 35 35 [Storable] -
branches/PersistenceOverhaul/HeuristicLab.Random/3.3/UniformRandomizer.cs
r12012 r13368 31 31 /// Uniformly distributed random number generator. 32 32 /// </summary> 33 [StorableClass ]33 [StorableClass("97FF61DF-3B76-4C06-B3CC-A8BBFBDD9E96")] 34 34 [Item("UniformRandomizer", "Initializes the value of variable 'Value' to a random value uniformly distributed between 'Min' and 'Max'")] 35 35 public class UniformRandomizer : SingleSuccessorOperator {
Note: See TracChangeset
for help on using the changeset viewer.