Class DistContinuousAngle

All Implemented Interfaces:
Serializable

public class DistContinuousAngle extends DistContinuousUnit<AngleUnit,Angle>
DistContinuousAngle is class defining a distribution for a Angle scalar.

Copyright (c) 2003-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
Author:
Alexander Verbraeck
See Also:
  • Constructor Details

    • DistContinuousAngle

      public DistContinuousAngle(DistContinuous wrappedDistribution, AngleUnit unit)
      Constructs a new continuous distribution that draws Angle scalars.
      Parameters:
      wrappedDistribution - DistContinuous; the wrapped continuous distribution
      unit - AngleUnit; the unit for the values of the distribution
    • DistContinuousAngle

      public DistContinuousAngle(DistContinuous wrappedDistribution)
      Constructs a new continuous distribution that draws Angle scalars in SI units.
      Parameters:
      wrappedDistribution - DistContinuous; the wrapped continuous distribution
  • Method Details

    • draw

      public Angle draw()
      draws the next stream value according to the probability of this this distribution.
      Specified by:
      draw in class DistContinuousUnit<AngleUnit,Angle>
      Returns:
      the next double value drawn.