windkit.ltc.mcp.VarRatMCP
- class windkit.ltc.mcp.VarRatMCP(fit_intercept=True, ws_cutoff=0.0, **kwargs)[source]
Sectorwise MCP using variance ratio linear regression.
- Parameters:
- model
- Type:
what model to use in each sector
Methods
__init__
([fit_intercept, ws_cutoff])fit
(ds_ref, ds_tgt, **kwargs)Fit the reference data to the target data by looping through the sectors and fitting the model to the data for that sector.
predict
(ds_ref, **kwargs)Predict the wind speed and direction from the reference data by looping through the sectors and predicting with the model for that sector.
wd_to_sector
(wd[, recalc_sectors])Convert wind direction to sectors using the object n_sectors and constant_sector_width values