dist_traits

computes a symmetric matrix of trait-distances between selected species

Contents

Syntax

[dist, val] = dist_traits (my_pets, traits, norm)

Description

computes a symmetric matrix of trait-distances between selected species (zero diagonal)

Input:

Output:

Remarks

The traits must be in allStat for all my_pets (not all traits are present for all models in allStat and NaN's can occur). See DEBtool_M/lib/pet/statistics_st for possible traits. The distance measures are DEBtool_M/lib/regr/lossfuction_sb or lossfuction_su.

Example of use

dist = dist_traits(select('Ctenophora'),{'p_M';'v';'a_b'});