Calculate the influence of 2 dimensional vectors
circular_influence.Rd
Calculate the influence of 2 dimensional vectors
Value
numeric double vector giving the proportion of influence from two dimensions, the x dimension and y dimension between -1 and 1
Details
This function determines the circular vector influence on a 1 to -1 scale. For example if the wind is blowing on a northerly vector (0 degrees) there is no influence reduction. If wind blows at a 90 degree angle there is no influence on the north south plane.
Examples
# Wind speed strength from a northerly wind
ws <- 5 # kph
wd <- 0 # degrees
ws * circular_influence(wd)
#> x y
#> 0 5
# Wind speed strength from a north east wind
ws <- 5 # kph
wd <- 45 # degrees
ws * circular_influence(wd)
#> x y
#> 3.535532 3.535536
# Wind speed strength from a south west wind
ws <- 5 # kph
wd <-225 # degrees
ws * circular_influence(wd)
#> x y
#> -3.535522 -3.535546