Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
165a59fc
Commit
165a59fc
authored
Jun 04, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RNG: support the fact that GUI will save values as empty string
parent
6981dad9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dream/simulation/RandomNumberGenerator.py
dream/simulation/RandomNumberGenerator.py
+6
-6
No files found.
dream/simulation/RandomNumberGenerator.py
View file @
165a59fc
...
...
@@ -28,12 +28,12 @@ holds methods for generations of numbers from different distributions
class
RandomNumberGenerator
(
object
):
def
__init__
(
self
,
obj
,
distributionType
,
mean
=
0
,
stdev
=
0
,
min
=
0
,
max
=
0
,
alpha
=
0
,
beta
=
0
):
self
.
distributionType
=
distributionType
self
.
mean
=
float
(
mean
)
self
.
stdev
=
float
(
stdev
)
self
.
min
=
float
(
min
)
self
.
max
=
float
(
max
)
self
.
alpha
=
float
(
alpha
)
self
.
beta
=
float
(
beta
)
self
.
mean
=
float
(
mean
or
0
)
self
.
stdev
=
float
(
stdev
or
0
)
self
.
min
=
float
(
min
or
0
)
self
.
max
=
float
(
max
or
0
)
self
.
alpha
=
float
(
alpha
or
0
)
self
.
beta
=
float
(
beta
or
0
)
self
.
obj
=
obj
def
generateNumber
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment