/** @class SunriseModel.cpp @author Brian Magill @creationdate 4/12/2007 @brief primative model of a sunrise signal */ #include "SunriseModel.h" using namespace std; valarray SunriseModel::getModel() const { unsigned long i; valarray model(ampl, length); double slope = ampl/double(topInd); for(i = 0; i <= topInd; i++) model[i] = slope*double(i); model[minInd] = 0.0; return model; } void SunriseModel::getModel(valarray &model) const { model.resize(length); model = getModel(); }