Generate basis matrix for cosinor regression.

## Arguments

- x
Values of the predictor variable.

- period
Period for the predictor variable.

- intercept
If

`TRUE`

, a column of ones will be included in the basis.

## Examples

```
b = getCosinorBasis(seq(0, 20, 4), period = 24, intercept = FALSE)
```