Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17244


Ignore:
Timestamp:
09/11/19 13:10:08 (5 years ago)
Author:
gkronber
Message:

#3027: added class to generate normally distributed numbers using the polar method.

Location:
branches/3027-NormalDistribution/HeuristicLab.Random/3.3
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3027-NormalDistribution/HeuristicLab.Random/3.3/HeuristicLab.Random-3.3.csproj

    r16658 r17244  
    120120    <Compile Include="GammaDistributedRandom.cs" />
    121121    <Compile Include="ListExtensions.cs" />
     122    <Compile Include="NormalDistributedRandomPolar.cs" />
     123    <Compile Include="NormalRandomizerPolar.cs" />
    122124    <Compile Include="RandomSeedGenerator.cs" />
    123125    <Compile Include="UniformDistributedRandom.cs" />
  • branches/3027-NormalDistribution/HeuristicLab.Random/3.3/NormalDistributedRandom.cs

    r17180 r17244  
    3434  [Item("NormalDistributedRandom", "A pseudo random number generator which uses the Ziggurat method to create normally distributed random numbers.")]
    3535  [StorableType("240F7050-C05B-4E85-82C3-2871FE2138B1")]
     36  [Obsolete("Use NormalDistributedRandomPolar instead.")]
    3637  public sealed class NormalDistributedRandom : Item, IRandom {
    3738    [Storable]
     
    449450    };
    450451
    451     /// <summary>
    452     /// Used by HeuristicLab.Persistence to initialize new instances during deserialization.
    453     /// </summary>
    454     /// <param name="deserializing">true, if the constructor is called during deserialization.</param>
    455452    [StorableConstructor]
    456453    private NormalDistributedRandom(StorableConstructorFlag _) : base(_) { }
     
    480477    /// <summary>
    481478    /// Initializes a new instance of <see cref="NormalDistributedRandom"/> with the given parameters.
    482     /// <note type="caution"> No CopyConstructor! The random number generator is not copied!</note>
     479    /// <note type="caution">The random number generator is not copied!</note>
    483480    /// </summary>   
    484481    /// <param name="uniformRandom">The random number generator.</param>
     
    537534    /// Clones the current instance (deep clone).
    538535    /// </summary>
    539     /// <remarks>Deep clone through <see cref="cloner.Clone"/> method of helper class
    540     /// <see cref="Auxiliary"/>.</remarks>
    541     /// <param name="clonedObjects">Dictionary of all already cloned objects. (Needed to avoid cycles.)</param>
     536    /// <remarks>Deep clone through <see cref="cloner.Clone"/> method of helper class.</remarks>
    542537    /// <returns>The cloned object as <see cref="NormalDistributedRandom"/>.</returns>
    543538    public override IDeepCloneable Clone(Cloner cloner) {
  • branches/3027-NormalDistribution/HeuristicLab.Random/3.3/NormalRandomizer.cs

    r17180 r17244  
    2626using HeuristicLab.Parameters;
    2727using HEAL.Attic;
     28using System;
    2829
    2930namespace HeuristicLab.Random {
     
    3334  [StorableType("0EAF4184-6C98-4C9D-80A1-09A42E03450E")]
    3435  [Item("NormalRandomizer", "Initializes the value of variable 'Value' to a random value normally distributed with parameters 'Mu' and 'Sigma'")]
     36  [Obsolete("Use NormalRandomizerPolar instead.")]
    3537  public class NormalRandomizer : SingleSuccessorOperator {
    3638    #region Parameter Properties
Note: See TracChangeset for help on using the changeset viewer.