Package com.opttek.optquest
Class COptQuestSphericalElevationRandomVariable
java.lang.Object
com.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestUserControlledVariable
com.opttek.optquest.COptQuestSphericalElevationRandomVariable
A random variable whose value is an elevation angle in degrees,
drawn uniformly by surface area from the band of the unit sphere between the elevations
min and max. Uniform by surface area, rather than uniform by angle, means that
values near the horizon are more likely than values near the poles. This is the elevation
of a random pointing direction on a band of the sphere. An elevation of -90 is straight down, 0 is the
horizon and +90 is straight up. The bounds must be within [-90, 90], and max must be
greater than min. The constructor that takes only a name uses the full range.
The probability density is proportional to the cosine of the elevation, scaled so that the
total probability from min to max is 1.
The engine draws a new value at the start of every replication. The probability
distribution is COptQuestSphericalElevationDistribution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new spherical elevation random variable for the full sphere (elevation range [-90°, 90°]).COptQuestSphericalElevationRandomVariable(String name, double min, double max) Constructs a new spherical elevation random variable over the specified elevation range in degrees. -
Method Summary
Methods inherited from class com.opttek.optquest.COptQuestUserControlledVariable
GetReplicationStatistic, GetReplicationStatisticValue, SetExclusiveRange, SetLowerBound, SetReplicationStatistic, SetUpperBoundMethods inherited from class com.opttek.optquest.COptQuestVariable
equals, GetDOELowerBound, GetDOEUpperBound, GetExclusiveLowerBoundAt, GetExclusiveUpperBoundAt, getID, GetLowerBound, GetName, GetNumberOfExclusiveRanges, GetStepSize, GetSuggestedValue, GetUpperBound, getVarRange, hashCode, isZeroOne, SetName
-
Constructor Details
-
COptQuestSphericalElevationRandomVariable
public COptQuestSphericalElevationRandomVariable(String name, double min, double max) throws COptQuestException Constructs a new spherical elevation random variable over the specified elevation range in degrees.- Parameters:
name- the name/identifier of this random variable (used for reporting, logging, or display purposes)min- minimum elevation angle in degrees (≥ -90)max- maximum elevation angle in degrees (≤ 90, must be > min)- Throws:
COptQuestException
-
COptQuestSphericalElevationRandomVariable
Constructs a new spherical elevation random variable for the full sphere (elevation range [-90°, 90°]).- Parameters:
name- the name/identifier of this random variable (used for reporting, logging, or display purposes)- Throws:
COptQuestException
-