[Thread Prev][Thread Next][Index]
[ferret_users]contour concentric circles - bivariate PDF
- To: ferret <ferret_users@xxxxxxxx>
- Subject: [ferret_users]contour concentric circles - bivariate PDF
- From: Peter Szabo <szabpet83@xxxxxxxxx>
- Date: Wed, 13 Jan 2010 17:50:52 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=K9kFKaBPKcS+sHQLkSDXy8OUPnTPNumn36OX0wSd4+I=; b=bNPZmcSUajoexRhls7Ns84et2ckPOJaiKXjXk7zVc4PgMvJB6i6Oh9OgX9qL/v4IFv wOY1bPs7ZeXmSO6VJZOQaYf1On6s+RpJSfCRKEZ820ZOk2Ms/za/l6gH7RvM0tX9LatM Q5jbGqaojC+97WkVQiif7ScXASUBYb5edw6m0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uLD3htR8LJHfndrlugvBelF9tlb5h+VEWMIgIlNGFMeA0o7TUXz4SFF1D+rdW2D10C 5f9BWbQfBTLl0hVTfDrTu4OyP6XhgmeHdBbvrHxKXKtiGXhIdd5hc6HrKP5M4QRQz+fn LrSdq2x65aQSSD92T/lZYL+anPJhaiv0ths68=
- Sender: owner-ferret_users@xxxxxxxx
Dear Users,
i have two 1-dimensional data sets either on different or the same axes. They have the same number of points and they are saved in one file.
1> szabop/ELTE-kozos/REMO_change.nc (default)
name title I J K L
T2 T1[X=1:224] 1:224 ... ... ...
P2 P1[Y=1:224] ... 1:224 ... ...
2> szabop/ELTE-kozos/REMO_changediff.nc (default)
name title I J K L
T2 T1[X=1:224] 1:224 ... ... ...
P2 P1[X=1:224] 1:224 ... ... ...
The T2 ranges from 2 to 2.5, while the P2 from -10 to 10 (in units).
I could easily plot/vs them, but my goal is to have something like that applying the bivariate normal distribution:
(Dots then) concentric circles (as an overlay).
The bivariate normal distribution has this density function (named bivar):
let xvar = (t2 - t2[x=@ave]) / t2[x=@var]
let yvar = (p2 - p2[x=@ave]) / p2[x=@var]
let bivar = (1 / (2 * 3.14 * ((1 - c^2)^0.5) * p2[x=@var] * t2[x=@var])) * exp (-1 * (xvar^2 + yvar^2 - 2 * c * xvar * yvar) / (2 - 2 * c^2))
[[I could add this question as well:
Why do not they "have" correlation after performing this?
let p = t2
let q = p2
go variance
So i chose a constant value for correlation (named c in the above equation): let c = 0.4.]]
However hard i try to contour the bivar, i never get the correct circles: 1. using D=1 i get a messy picture 2. using D=2 i cannot even contour the plots as the bivar is 1-dimensional. Should i attach something as well?
Many thanks for any help,
Peter Szabo
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement