[Scipy-tickets] [SciPy] #527: scipy.stats.bayes_mvs() returns differnet structure dependign on lenght of data.

SciPy scipy-tickets@scipy....
Wed Oct 31 17:45:02 CDT 2007


#527: scipy.stats.bayes_mvs() returns differnet structure dependign on lenght of
data.
--------------------+-------------------------------------------------------
 Reporter:  tonym   |        Owner:  somebody
     Type:  defect  |       Status:  new     
 Priority:  normal  |    Milestone:  0.7     
Component:  Other   |      Version:          
 Severity:  normal  |   Resolution:          
 Keywords:          |  
--------------------+-------------------------------------------------------
Comment (by tonym):

 Example of calling code having to deal with the different
 structures:

 if data.shape[0] > 1000:
   ci_min, ci_max = scipy.stats.bayes_mvs(data,alpha=0.95)[1]
 elif adiff.shape[0] > 2: # arbitrary limit
   ci_min, ci_max = scipy.stats.bayes_mvs(data, alpha=0.95)[0][1]

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/527#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list