50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

phylodyn (version 0.9.0)

traj_beta: Raise a trajectory function to a power

Description

Raise a trajectory function to a power

Usage

traj_beta(t, traj, beta, ...)

Arguments

t
numeric vector of times at which to evaluate the transformed trajectory function.
traj
function. The trajectory to transform.
beta
numeric. The power to raise the trajectory function to.
...
additional arguments to pass to trajectory function.

Value

A vector containing f(t)β.

Examples

Run this code
traj_beta(1:3, unif_traj, 2, level=2)

Run the code above in your browser using DataLab