95th and 99th percentile

Hello Experts, I am trying to calculate 95th and 99th percentilefor data over a date range. I went through the manual and could notfind any function regarding this. Is there an easy way of doing thisin q? Right now i am downloading data to csv and computing 95 and 99thpercentile. However for a whole trading day this is extremely timeconsuming. Please suggest.-Satish

To: personal-kdbplus@googlegroups.com
X-Mailer: Apple Mail (2.1257)
X-Gm-Message-State: ALoCoQlkVT8AJg3lMXMprAs/2sjLc2UKmgifSyUk9DiMW2qJ5cG6MvJh/cILf0nSK3okPfnSkoRI

Maybe:
{(asc x) floor .95*count x}

Andras

2012.03.05. d=E1tummal, 16:53 id=F5pontban Satish =EDrta:

> Hello Experts,
> I am trying to calculate 95th and 99th percentile
> for data over a date range. I went through the manual and could not
> find any function regarding this. Is there an easy way of doing this
> in q? Right now i am downloading data to csv and computing 95 and 99th
> percentile. However for a whole trading day this is extremely time
> consuming. Please suggest.
>
> -Satish
>
> –
> You received this message because you are subscribed to the Google =
Groups “Kdb+ Personal Developers” group.
> To post to this group, send email to =
personal-kdbplus@googlegroups.com.
> To unsubscribe from this group, send email to =
personal-kdbplus+unsubscribe@googlegroups.com.
> For more options, visit this group at =
http://groups.google.com/group/personal-kdbplus?hl=en.
>