% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Distance.R
\name{augmented_cost_matrix}
\alias{augmented_cost_matrix}
\title{Build the augmented (n+m) x (n+m) assignment cost matrix for two diagrams}
\usage{
augmented_cost_matrix(X, Y, ground = c("L2", "Linf"), power = 1)
}
\arguments{
\item{X, Y}{Matrices with columns \code{birth}, \code{death} (as produced
by the internal \code{diagram_points()} helper).}

\item{ground}{Ground metric on the birth-death plane, \code{"L2"} or
\code{"Linf"}.}

\item{power}{Exponent applied to every ground distance before it enters
the matrix (\code{p} for a \eqn{p}-Wasserstein distance; use \code{1}
for bottleneck, which works with raw distances and takes a max instead
of a sum).}
}
\value{
A square numeric matrix of size \code{nrow(X) + nrow(Y)}.
}
\description{
Build the augmented (n+m) x (n+m) assignment cost matrix for two diagrams
}
\keyword{internal}
