AndrewG

195 Reputation

7 Badges

11 years, 318 days

MaplePrimes Activity


These are answers submitted by AndrewG

How about like this.  Is this a good way to do it?  I generated 1000 points.


with(Statistics):

with(plots):

sx := Sample(Normal(3, 1), 1000)

sx := Vector(4, {(1) = ` 1 .. 1000 `*Vector[row], (2) = `Data Type: `*float[8], (3) = `Storage: `*rectangular, (4) = `Order: `*Fortran_order})

(1)

sy := Statistics:-Sample(Normal(15, 1), 1000)

sy := Vector(4, {(1) = ` 1 .. 1000 `*Vector[row], (2) = `Data Type: `*float[8], (3) = `Storage: `*rectangular, (4) = `Order: `*Fortran_order})

(2)

sampdist := zip(proc (x, y) options operator, arrow; [x, y] end proc, sx, sy)

sampdist := Vector(4, {(1) = ` 1 .. 1000 `*Vector[row], (2) = `Data Type: `*anything, (3) = `Storage: `*rectangular, (4) = `Order: `*Fortran_order})

(3)

pointplot(sampdist)

 

``


Download distribution_around_point.mw

I think a truncated normal is what I'm looking for. 

I want to truncate a normal distribution at 0 and 15.  How can I do that?

Sorry for answering an old post. 

I had the exact same problem.  MapleSim 2 was fine and a newer MapleSim produced a blank 3d visualization window.  I updated drivers, installed the latest Java and also added the software control lines mentioned in the FAQ.  None seemed to work.  I even dropped hardware acceleration below half, nothing seemed to work.

The key was in fact to disable video hardware acceleration all together.

Page 1 of 1