POV-Ray : Newsgroups : povray.general : Bell curves : Re: Bell curves Server Time
30 Jul 2024 06:31:13 EDT (-0400)
  Re: Bell curves  
From: Francois LE COAT
Date: 31 Aug 2009 17:59:55
Message: <4a9c47db$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.