the following from the docs does not create a correct pattern:
reduce_ant_function = norm pattern = Pattern(manifold, reduce_ant_function, num_az = 360, num_el = 91, max_el = π / 2)
The "function" Pattern will return the abs value of a steering vector for all angles. This will always be 2 for a 4 element array (as used in the docs).
the following will create a radiation pattern:
reduce_ant_function(x) = norm(x' * steer_vec) pattern = Pattern(manifold, reduce_ant_function, num_az = 360, num_el = 91, max_el = π / 2)
or even:
reduce_ant_function(x) = x' * steer_vec pattern = Pattern(manifold, reduce_ant_function, num_az = 360, num_el = 91, max_el = π / 2)
will suffice.
Maybe update docs to clear this up,
or modify the Pattern function to something like:
function Pattern(manifold, reduce_ant_fun = norm; num_az = 360, num_el = 91, max_el = π / 2, **steering_vector**)
such the steering vector can be used within the function to compute a correct radiation pattern.
the following from the docs does not create a correct pattern:
reduce_ant_function = norm pattern = Pattern(manifold, reduce_ant_function, num_az = 360, num_el = 91, max_el = π / 2)The "function" Pattern will return the abs value of a steering vector for all angles. This will always be 2 for a 4 element array (as used in the docs).
the following will create a radiation pattern:
reduce_ant_function(x) = norm(x' * steer_vec) pattern = Pattern(manifold, reduce_ant_function, num_az = 360, num_el = 91, max_el = π / 2)or even:
reduce_ant_function(x) = x' * steer_vec pattern = Pattern(manifold, reduce_ant_function, num_az = 360, num_el = 91, max_el = π / 2)will suffice.
Maybe update docs to clear this up,
or modify the Pattern function to something like:
function Pattern(manifold, reduce_ant_fun = norm; num_az = 360, num_el = 91, max_el = π / 2, **steering_vector**)such the steering vector can be used within the function to compute a correct radiation pattern.