1

I have a data set(x,y,z) corresponding to a hemisphere, to which I want to add some controlled noise (random values) to make the x,y,z values diverge.

data = Flatten[ Table[{i, j, i^2 + j^2}, {i, -10, 10, 1}, {j, -10, 10, 1}], 1]

The above is a 3 coordinate set (x,y,z) values for a hemisphere. How do I add random noise to it?

Thank you

Mun
  • 377
  • 3
  • 10

1 Answers1

8
 data = Flatten[Table[{i, j, i^2 + j^2}, {i, -10, 10, 1}, {j, -10, 10, 1}], 1];
 noisydata = # + RandomReal[5, 3] & /@ data;
 Row[{ListPlot3D[data, ImageSize -> 300, BoxRatios -> 1],
   ListPlot3D[noisydata, ImageSize -> 300, BoxRatios -> 1]}]

enter image description here

kglr
  • 394,356
  • 18
  • 477
  • 896