distance_curves: Compute distance between two curves

View source: R/compute_coi.R

distance_curvesR Documentation

Compute distance between two curves

Description

Compute the distance between two curves using several methods.

abs_sum

Absolute value of sum of difference.

sum_abs

Sum of absolute difference.

squared

Sum of squared difference.

Usage

distance_curves(processed_data, theory_cois, distance = "squared")

Arguments

theory_cois

The theoretical COI curves.

distance

[Deprecated] This argument is no longer supported; this function will solve a weighted least squares minimization problem.

Value

A list of the following:

coi

The predicted COI for the simulation.

dist

The distance between each theoretical COI and the simulated COI curve.


bailey-lab/coiaf documentation built on April 26, 2023, 6:32 p.m.