|
![](/i/fill.gif) |
Hi,
SharkD writes :
> I would like to create a function for a heightfield that has a nice bel
l
> curve shape, but can also be normalized between 0 and 1 along each axis
.
> I've looked at the normal distribution and beta distribution functions,
> but they can only be normalized along one axis.
>
> The sine wave can be normalized, but it is not "fat" enough (i.e. I
> would like the peak to be wider than the trough). What other options ar
e
> there?
t in [0,2*Pi], y in ]-1,1[ then bell curve is
"cos^2(t)+sin^2(t)=(4+ath(-y))^2"
ath() is hyperbolic arctangent means inverse of hyperbolic tangent th().
Does it suits you ?
Regards,
--
Author of Eureka 2.12 (2D Graph Describer, 3D Modeller)
http://eureka.atari.org/
http://fon.gs/eureka/
Post a reply to this message
|
![](/i/fill.gif) |