Constructs a discretized gradient along time/height. The gradient value between
bounds[i] and bounds[i+1] (not including) is vals[i], values above/below the largest/smallest value of bounds are assigned outval.
Helper function for usage with discrete_niche
See also
discrete_niche()to construct niches based on discretized gradientsapply_niche()to combinediscrete_niche()anddiscrete_gradient()to model the effects of nichesvignette("advanced_functionality")for details how to create user-defined niche models