MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: pdf[d,x] vs. function(x)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52872] Re: pdf[d,x] vs. function(x)
  • From: "Scout" <user at domain.com>
  • Date: Wed, 15 Dec 2004 04:26:59 -0500 (EST)
  • References: <cpmio2$ohc$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Scout" <user at domain.com> ha scritto nel messaggio 
news:cpmio2$ohc$1 at smc.vnet.net...
> Given the symbol  p = PDF [ NormalDistribution, x ]
> (where PDF is the Probability Density Function)
> which declares an expression in x,
> I want to build a new function, i.e. f(z)=p
> with the parameter z instead, but I obtain an error.
> How can I do? Thanks, Scout?
>

Ok, I have found a solution
say p=PDF[NormalDistribution[],x]
then I declare a new function such as  f[t_] := p /. x->t
So I can use f[t] instead of the more generic symbol p


  • Prev by Date: Re: pdf[d,x] vs. function(x)
  • Next by Date: Re: defining variables as Real
  • Previous by thread: Re: pdf[d,x] vs. function(x)
  • Next by thread: Re: pdf[d,x] vs. function(x)