.TH "/var/www/mlpack.ratml.org/mlpack.org/_src/mlpack-3.3.0/src/mlpack/core/metrics/lmetric.hpp" 3 "Mon Aug 31 2020" "Version 3.1.1" "mlpack" \" -*- nroff -*-
.ad l
.nh
.SH NAME
/var/www/mlpack.ratml.org/mlpack.org/_src/mlpack-3.3.0/src/mlpack/core/metrics/lmetric.hpp
.SH SYNOPSIS
.br
.PP
.SS "Classes"

.in +1c
.ti -1c
.RI "class \fBLMetric< TPower, TTakeRoot >\fP"
.br
.RI "The L_p metric for arbitrary integer p, with an option to take the root\&. "
.in -1c
.SS "Namespaces"

.in +1c
.ti -1c
.RI " \fBmlpack\fP"
.br
.RI "strip_type\&.hpp "
.ti -1c
.RI " \fBmlpack::metric\fP"
.br
.in -1c
.SS "Typedefs"

.in +1c
.ti -1c
.RI "typedef LMetric< INT_MAX, false > \fBChebyshevDistance\fP"
.br
.RI "The L-infinity distance\&. "
.ti -1c
.RI "typedef LMetric< 2, true > \fBEuclideanDistance\fP"
.br
.RI "The Euclidean (L2) distance\&. "
.ti -1c
.RI "typedef LMetric< 1, false > \fBManhattanDistance\fP"
.br
.RI "The Manhattan (L1) distance\&. "
.ti -1c
.RI "typedef LMetric< 2, false > \fBSquaredEuclideanDistance\fP"
.br
.RI "The squared Euclidean (L2) distance\&. "
.in -1c
.SH "Detailed Description"
.PP 

.PP
\fBAuthor:\fP
.RS 4
Ryan Curtin
.RE
.PP
Generalized L-metric, allowing both squared distances to be returned as well as non-squared distances\&. The squared distances are faster to compute\&.
.PP
This also gives several convenience typedefs for commonly used L-metrics\&.
.PP
mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license\&. You should have received a copy of the 3-clause BSD license along with mlpack\&. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information\&. 
.PP
Definition in file \fBlmetric\&.hpp\fP\&.
.SH "Author"
.PP 
Generated automatically by Doxygen for mlpack from the source code\&.
