Skip to contents

Compute the availability of aquatic habitats.

Usage

compute_Q(habitat_matrix, search_weights)

Arguments

habitat_matrix

the membership matrix, \(\cal N\)

search_weights

the habitat search weights, \(\omega_q\)

Value

a vector of describing habitat availability, \(Q\), of length nPatches

Details

The availability of the habitats that we have defined in the model, denoted \(Q\), sums search weights, \(\omega_q\), by patch using the habitat membership matrix, \(\cal N\), and we can compute $$Q = {\cal N} \cdot \omega_q.$$

See also

This function is called by make_Q

create_habitat_matrix discusses \(\cal N\)

The availability of ovitraps and bad habitats is setup in setup_EGG_LAYING