Skip to contents

Objective function for fitting

Usage

objective(coef, t, floor, rainfall)

Arguments

coef

Fourier coefficients

t

Vector of days (between 1 and 365)

floor

Lower bound on rainfall fit

rainfall

Vector of rainfall

Value

Sum of squared differences between profile and rainfall data