Produces an object suitable to pass as the funcresp to spec_rescomp(). Creates a Holling type 3 functional response with attack rate a, handling time h, and exponent k. mu_ij(R_j) = (a_ij * (R_j)^k_ij) / (1 + a_ij * h_ij * (R_j)^k_ij)

funcresp_type3(a, h, k)

Arguments

a

A matrix or rescomp_coefs_matrix, with one row per species and one column per resource. The maximum attack rate (if using efficiency) or growth rate (if using quota) of each species on each resource, when the resource is rare.

h

A matrix or rescomp_coefs_matrix, with one row per species and one column per resource. The handling time of each species for each resource, which reduces attack/growth rate when the resource becomes abundant.

k

A matrix or rescomp_coefs_matrix, with one row per species and one column per resource. The exponent (a.k.a. Hill coefficient) for each species on each resource. With k = 1, this is equivalent to a type 2 functional response. Each k must be greater than 1 for a true type 3 functional response.

Value

S3 object of class rescomp_funcresp.

Examples

# TODO