I'm confused as far as what this problem is asking for. I understand
that vector means array, but I don't know what you mean by "replaces
the values with their moving averages" or "If there is not enough data
for a three day average for the day, replace it with NaN." Could you
give me a sample input and output for the program (like in ex 5)?
Thanks.
> 2011/6/14 Jay McCarthy <
jay.mccar...@gmail.com>:
>
>
>
>
>
>
>
>
>
> > A vector is another name for an array.
>
> > Jay
>
> > 2011/6/14 Aaron <
l33...@gmail.com>:
> >> Ex 6 says:
>
> >> 6. Modify #5 so that it takes a vector of prices
>
> >> I understood vector of prices as a ListOfPrices. I have it working as
> >> a ListOfPrices. However, I think I remember faintly that in class,
> >> the teacher said that a vector was an array. should the contract be
> >> ListOfPrices -> ListOfPrices or should it be double[] -> double[]?
>
> > --
> > Jay McCarthy <
j...@cs.byu.edu>
> > Assistant Professor / Brigham Young University
> >
http://faculty.cs.byu.edu/~jay
>
> > "The glory of God is Intelligence" - D&C 93
>
> --
> Jay McCarthy <
j...@cs.byu.edu>
> Assistant Professor / Brigham Young Universityhttp://
faculty.cs.byu.edu/~jay