There appears to be a discrepancy between the values returned by the prctile
function in statistics-1.0.9 and the prctile function in Octave 3.2.3 base
or Matlab.

Try:
x=[0.99681   0.65388   0.98868   0.89723   0.82408   0.91875   0.65341
0.98494   0.99998   0.98451   0.99612   0.85303   0.98375   0.63034
0.84889   0.76379   0.65696   0.87333   0.63723   0.92791 ...
     0.62490   0.96525   0.99875   0.75127   0.97160   0.76852   0.99179
0.59773   0.99411   0.95847   0.99081   0.99006   0.98832   0.99187
0.99858   0.97619   0.99633   0.99648   0.96016   0.78434 ...
     0.96164   0.89669   0.93791   0.98041   0.92270   0.99813   0.98505
0.98432   0.97943   0.99998   0.98615   0.99861   0.89135   0.98757
0.94214   0.62010   0.99991   0.94103   0.58801   0.90678 ...
     0.94015   0.96830   0.99299   0.51504   0.94118   0.96052   0.82772
0.99975   1.00000   0.83033   0.95529   0.95945   0.97371   0.98821
0.71541   0.84922   0.94112   0.99994   0.97436   0.97788 ...
     0.96308   0.63496   0.94937   0.89474   0.95207   0.95914   0.94554
0.96845   0.99151   0.98010   0.71514   0.99893   0.95369   0.71156
0.99970   0.97459   0.50175   0.96379   0.80333   0.85383 ...
     0.99709   0.61059   0.86948   0.55384   0.61333   0.59713   0.99951
0.96563   0.93410   0.99838   0.82033   0.99919   0.99679   0.69149
0.99702   0.87239   0.76610   0.73209   0.30426   0.68371 ...
     0.97864   0.45112   0.99502   0.90559   0.86818   0.87774   0.99799
0.92109   0.99921   0.99109   0.91209   0.89422   0.93817   0.99990
0.98133   0.94947   0.75422   0.97883   0.99827   0.93700 ...
     0.97768   0.93748   0.91913   0.99863   0.99366   0.41248   0.98329
0.99814   0.96972   0.93693   0.93259   0.99857   0.99914   0.98990
0.96173   0.99799   0.93922   0.98139   0.92899   0.93673 ...
     0.99925   0.99976   0.93140   0.97401   0.99720   0.99450   0.83717
0.99949   0.98373   0.20870   0.98082   0.92650   0.50653   0.98445
0.87890   0.93368   0.93445   0.93279   0.82957   0.98138 ...
     0.99838   0.97931   0.97274   0.74091   0.96389   0.96035   0.99804
0.99577   0.91269   0.98251   0.39771   0.53285   0.86799   0.98827
0.69707   0.96870   0.43429   0.18406   0.99518]';
prctile(x,[2.5 97.5])

Yields:
ans = 0.433199500000000   0.999900500000000 (statistics-1.0.9)
ans = 0.422839750000000   0.999905250000000 (Octave 3.2.3 and Matlab)

:) Michael
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to