From bug-request at octave dot org Wed Jan 19 09:47:10 2005 Subject: hurst.m From: Francesco Potorti` To: Octave bugs list Date: Wed, 19 Jan 2005 09:17:42 -0600 The function /usr/share/octave/2.1.64/m/signal/hurst.m claims to compute the Hurst parameters of columns in its matrix argument, but in fact only works for column vectors. The patch is simple: - w = cumsum (x - mean (x)); + w = cumsum (x - ones(xr,1) * mean (x)); but this makes me wonder if anyone has ever used this function with matrices, rather than vectors. I am working to generalise this function, by adding an argument that specifies the algorithm to use for computing the Hurst parameter. Does anyone have an opinion on whether it is worth maintaining the ability to work on matrices (column by column) rather than vectors? -- Francesco Potortě (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 313 8091 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti dot cnr dot it Web: http://fly.isti.cnr.it/ Key: fly.isti.cnr.it/public.key ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------