PoonLab / Kaphi

Kernel-embedded ABC-SMC for phylodynamic inference
GNU Affero General Public License v3.0
4 stars 2 forks source link

normalizing kernels and branch lengths #134

Closed ArtPoon closed 6 years ago

ArtPoon commented 6 years ago

We've been using the term "normalize" to refer to both the kernel normalization -- denominator = sqrt(k(t1, t1) * k(t2, t2)) -- and to rescaling branch lengths (norm.mode). From now on, "normalize" should be used exclusively in reference to the kernel distance, and the latter should be "rescaling" branch lengths.

Either operation should not affect other distance measures. For example, it should be possible to have a distance function with two or more kernel distances, where one kernel distance operates on unscaled branch lengths (original lengths) and another rescales by the mean.