random number including 1 - i.e. [0,1]

L

Lawrence D'Oliveiro

Esmail said:
I'm implementing a Particle Swarm Optimizer. Depending on what paper you
read you'll see mention of required random values "between 0 and 1"
which is somewhat ambiguous. I came across one paper that specified
the range [0,1], so inclusive 1, which was the reason for my question.

Sounds like some of their descriptions are a bit sloppy. Maybe best to clear
it up by trying to think what a value of exactly or exactly 1 for the random
value might mean: are those boundaries meant to be inside the set, or
outside? Is it meaningful to concatenate two adjacent intervals? In that
case any point can only belong to one of the intervals, not both.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top