Class Functor - Please help! :(

Hi,

I have the task of writing a class that stores a series of numbers. The length can be set in a constructor, all numbers will be floats and be within the range -1 to 1.

I need a function to display the sequence visually. (As a wave form) E.g.

....#
.... ##
.... ###
.... #
.. ##
.. ###

Then add a function that takes a functor that can be used to replace every value with another based on the original value. E.g. all values such that abs(x) < 0.5 become -1 or 1 (depending on whether they were originally +/-
Last edited on
Topic archived. No new replies allowed.