SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
ConstantIntDist.java
1
/*
2
* Class: ConstantIntDist
3
* Description: constant integer 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 Éric Buist
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
*/
25
package
umontreal.ssj.probdist;
26
42
public
class
ConstantIntDist
extends
UniformIntDist
{
43
47
public
ConstantIntDist
(
int
c) {
48
super(c, c);
49
}
50
54
public
String
toString
() {
55
return
getClass().getSimpleName() +
" : c = "
+ i;
56
}
57
58
}
umontreal.ssj.probdist.ConstantIntDist.toString
String toString()
Returns a String containing information about the current distribution.
Definition
ConstantIntDist.java:54
umontreal.ssj.probdist.ConstantIntDist.ConstantIntDist
ConstantIntDist(int c)
Constructs a new constant distribution with probability 1 at c.
Definition
ConstantIntDist.java:47
umontreal.ssj.probdist.UniformIntDist.UniformIntDist
UniformIntDist(int i, int j)
Constructs a discrete uniform distribution over the interval .
Definition
UniformIntDist.java:53
src
main
java
umontreal
ssj
probdist
ConstantIntDist.java
Generated by
1.16.1