Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17864 for stable


Ignore:
Timestamp:
03/09/21 08:15:07 (3 years ago)
Author:
gkronber
Message:

#3027: merged r17806, r17810 from trunk to stable

Location:
stable
Files:
5 edited
2 copied

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Random

  • stable/HeuristicLab.Random/3.3/HeuristicLab.Random-3.3.csproj

    r17105 r17864  
    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" />
  • stable/HeuristicLab.Random/3.3/NormalDistributedRandom.cs

    r17181 r17864  
    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) {
  • stable/HeuristicLab.Random/3.3/NormalDistributedRandomPolar.cs

    r17806 r17864  
    3232  /// </summary>
    3333  [Item("NormalDistributedRandomPolar", "A pseudo random number generator which uses Marsaglia's polar method to create normally distributed random numbers.")]
     34  [StorableType("B17E35DB-1DC6-434A-8F08-4AD4AB224C59")]
    3435  public sealed class NormalDistributedRandomPolar : Item, IRandom {
    3536    [Storable]
  • stable/HeuristicLab.Random/3.3/NormalRandomizer.cs

    r17181 r17864  
    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.