help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert double to octave_value for assignment to column vector


From: David Grundberg
Subject: Re: Convert double to octave_value for assignment to column vector
Date: Thu, 10 Jun 2010 08:41:51 +0200
User-agent: Thunderbird 2.0.0.24 (X11/20100411)

babelproofreader skrev:
I have attached a copy of the next evolutionary step in my attempt to code
this function. It is a fixed length moving window version, the window length
being a user input, and I would appreciate any constructive feedback about
this version. It compiles and works as I expect, but I would be really
grateful if anyone could suggest how I can resize the ColumnVectors
int_slopes and int_intercepts while the function is running. My searches of
this forum have turned up references to "ColumnVector::resize
(octave_idx_type)" but this is as much as I have usefully found so far.
http://octave.1599824.n4.nabble.com/file/n2249625/rep_median_mw.cc
rep_median_mw.cc

I don't understand what you are trying to do here. Isn't the size of int_slopes determined by the arguments? You want to have a adaptive window size? Anyway, you probably know the maximum possible vector size, right? Create such a vector, and then you can index it and calculate the median of the indexed part.

David


reply via email to

[Prev in Thread] Current Thread [Next in Thread]