SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
ExponentialDistFromMean.java
1/*
2 * Class: ExponentialDistFromMean
3 * Description: exponential distribution
4 * Environment: Java
5 * Software: SSJ
6 * Copyright (C) 2001 Pierre L'Ecuyer and Universite de Montreal
7 * Organization: DIRO, Universite de Montreal
8 * @author
9 * @since
10 *
11 *
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
15 *
16 * http://www.apache.org/licenses/LICENSE-2.0
17 *
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 *
24 */
25package umontreal.ssj.probdist;
26
36
42 public ExponentialDistFromMean(double mean) {
43 super(1.0 / mean);
44 }
45
52 public void setMean(double mean) {
53 setLambda(1.0 / mean);
54 }
55}
ExponentialDistFromMean(double mean)
Constructs a new exponential distribution with mean mean.
void setMean(double mean)
Calls umontreal.ssj.probdist.ExponentialDist.setLambda(double) with argument 1/mean to change the mea...
void setLambda(double lambda)
Sets the value of for this object.
ExponentialDist()
Constructs an ExponentialDist object with rate parameter = 1.