#include "Simulation.h" #include "Equation.h" namespace panel_modeler { double Simulation::decayPVWatts(const PanelData &input, const unsigned long year) { return static_cast(input.panelCount) * Equation::PVWatts(input) * Equation::powerDecayPrediction(input, year); } std::vector> Simulation::run(const std::vector &panels, const unsigned long years) { std::vector> results(panels.size()); for (std::size_t panel = 0; panel < panels.size(); ++panel) { results[panel].reserve(years + 1); for (unsigned long year = 0; year <= years; ++year) { results[panel].push_back(decayPVWatts(panels[panel], year)); } } return results; } } // namespace panel_modeler