blob: 87daa53cd7b153c6216a090ba8d50a93342b6ef5 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<link rel="canonical" href="https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/ml/math/distances/class-use/DistanceMeasure.html" />
<!-- Generated by javadoc (1.8.0_261) on Wed Dec 09 14:33:15 MSK 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.apache.ignite.ml.math.distances.DistanceMeasure (Ignite 2.9.1)</title>
<meta name="date" content="2020-12-09">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61232409-1', 'auto');
ga('send', 'pageview');
</script></head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Interface org.apache.ignite.ml.math.distances.DistanceMeasure (Ignite 2.9.1)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/ignite/ml/math/distances/class-use/DistanceMeasure.html" target="_top">Frames</a></li>
<li><a href="DistanceMeasure.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Interface org.apache.ignite.ml.math.distances.DistanceMeasure" class="title">Uses of Interface<br>org.apache.ignite.ml.math.distances.DistanceMeasure</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.ignite.ml.clustering.kmeans">org.apache.ignite.ml.clustering.kmeans</a></td>
<td class="colLast">
<div class="block">Contains kMeans clustering algorithm.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.ignite.ml.knn">org.apache.ignite.ml.knn</a></td>
<td class="colLast">
<div class="block">Contains main APIs for kNN algorithms.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.ignite.ml.knn.ann">org.apache.ignite.ml.knn.ann</a></td>
<td class="colLast">
<div class="block">Contains main APIs for ANN classification algorithms.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.ignite.ml.knn.utils">org.apache.ignite.ml.knn.utils</a></td>
<td class="colLast">
<div class="block">Contains util functionality for kNN algorithms.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.ignite.ml.knn.utils.indices">org.apache.ignite.ml.knn.utils.indices</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.ignite.ml.math.distances">org.apache.ignite.ml.math.distances</a></td>
<td class="colLast">
<div class="block">Contains main APIs for distances.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.apache.ignite.ml.clustering.kmeans">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a> in <a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/package-summary.html">org.apache.ignite.ml.clustering.kmeans</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/package-summary.html">org.apache.ignite.ml.clustering.kmeans</a> that return <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">KMeansModel.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/KMeansModel.html#distanceMeasure--">distanceMeasure</a></span>()</code>
<div class="block">Distance measure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">KMeansTrainer.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/KMeansTrainer.html#getDistance--">getDistance</a></span>()</code>
<div class="block">Gets the distance.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">KMeansModelFormat.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/KMeansModelFormat.html#getDistance--">getDistance</a></span>()</code>&nbsp;</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/package-summary.html">org.apache.ignite.ml.clustering.kmeans</a> with parameters of type <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/KMeansTrainer.html" title="class in org.apache.ignite.ml.clustering.kmeans">KMeansTrainer</a></code></td>
<td class="colLast"><span class="typeNameLabel">KMeansTrainer.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/KMeansTrainer.html#withDistance-org.apache.ignite.ml.math.distances.DistanceMeasure-">withDistance</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distance)</code>
<div class="block">Set up the distance.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/package-summary.html">org.apache.ignite.ml.clustering.kmeans</a> with parameters of type <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/KMeansModel.html#KMeansModel-org.apache.ignite.ml.math.primitives.vector.Vector:A-org.apache.ignite.ml.math.distances.DistanceMeasure-">KMeansModel</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>[]&nbsp;centers,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure)</code>
<div class="block">Construct KMeans model with given centers and distanceMeasure measure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/clustering/kmeans/KMeansModelFormat.html#KMeansModelFormat-org.apache.ignite.ml.math.primitives.vector.Vector:A-org.apache.ignite.ml.math.distances.DistanceMeasure-">KMeansModelFormat</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>[]&nbsp;centers,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distance)</code>&nbsp;</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.ignite.ml.knn">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a> in <a href="../../../../../../../org/apache/ignite/ml/knn/package-summary.html">org.apache.ignite.ml.knn</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../../../../org/apache/ignite/ml/knn/package-summary.html">org.apache.ignite.ml.knn</a> declared as <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">NNClassificationModel.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/NNClassificationModel.html#distanceMeasure">distanceMeasure</a></span></code>
<div class="block">Distance measure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">KNNTrainer.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/KNNTrainer.html#distanceMeasure">distanceMeasure</a></span></code>
<div class="block">Distance measure.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">KNNModel.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/KNNModel.html#distanceMeasure">distanceMeasure</a></span></code>
<div class="block">Distance measure.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/apache/ignite/ml/knn/package-summary.html">org.apache.ignite.ml.knn</a> that return <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">NNClassificationModel.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/NNClassificationModel.html#getDistanceMeasure--">getDistanceMeasure</a></span>()</code>&nbsp;</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/apache/ignite/ml/knn/package-summary.html">org.apache.ignite.ml.knn</a> with parameters of type <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/knn/NNClassificationModel.html" title="class in org.apache.ignite.ml.knn">NNClassificationModel</a></code></td>
<td class="colLast"><span class="typeNameLabel">NNClassificationModel.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/NNClassificationModel.html#withDistanceMeasure-org.apache.ignite.ml.math.distances.DistanceMeasure-">withDistanceMeasure</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure)</code>
<div class="block">Set up parameter of the NN model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/knn/KNNTrainer.html" title="type parameter in KNNTrainer">Self</a></code></td>
<td class="colLast"><span class="typeNameLabel">KNNTrainer.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/KNNTrainer.html#withDistanceMeasure-org.apache.ignite.ml.math.distances.DistanceMeasure-">withDistanceMeasure</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure)</code>
<div class="block">Sets up <code>distanceMeasure</code> parameter.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../../../org/apache/ignite/ml/knn/package-summary.html">org.apache.ignite.ml.knn</a> with parameters of type <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/KNNModel.html#KNNModel-org.apache.ignite.ml.dataset.Dataset-org.apache.ignite.ml.math.distances.DistanceMeasure-int-boolean-">KNNModel</a></span>(<a href="../../../../../../../org/apache/ignite/ml/dataset/Dataset.html" title="interface in org.apache.ignite.ml.dataset">Dataset</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/dataset/primitive/context/EmptyContext.html" title="class in org.apache.ignite.ml.dataset.primitive.context">EmptyContext</a>,<a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/SpatialIndex.html" title="interface in org.apache.ignite.ml.knn.utils.indices">SpatialIndex</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/knn/KNNModel.html" title="type parameter in KNNModel">L</a>&gt;&gt;&nbsp;dataset,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure,
int&nbsp;k,
boolean&nbsp;weighted)</code>
<div class="block">Constructs a new instance of KNN model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/KNNPartitionDataBuilder.html#KNNPartitionDataBuilder-org.apache.ignite.ml.preprocessing.Preprocessor-org.apache.ignite.ml.knn.utils.indices.SpatialIndexType-org.apache.ignite.ml.math.distances.DistanceMeasure-">KNNPartitionDataBuilder</a></span>(<a href="../../../../../../../org/apache/ignite/ml/preprocessing/Preprocessor.html" title="interface in org.apache.ignite.ml.preprocessing">Preprocessor</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/knn/KNNPartitionDataBuilder.html" title="type parameter in KNNPartitionDataBuilder">K</a>,<a href="../../../../../../../org/apache/ignite/ml/knn/KNNPartitionDataBuilder.html" title="type parameter in KNNPartitionDataBuilder">V</a>&gt;&nbsp;preprocessor,
<a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/SpatialIndexType.html" title="enum in org.apache.ignite.ml.knn.utils.indices">SpatialIndexType</a>&nbsp;spatialIdxType,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure)</code>
<div class="block">Constructs a new instance of KNN partition data builder.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.ignite.ml.knn.ann">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a> in <a href="../../../../../../../org/apache/ignite/ml/knn/ann/package-summary.html">org.apache.ignite.ml.knn.ann</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../../../../org/apache/ignite/ml/knn/ann/package-summary.html">org.apache.ignite.ml.knn.ann</a> declared as <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">KNNModelFormat.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/ann/KNNModelFormat.html#distanceMeasure">distanceMeasure</a></span></code>
<div class="block">Distance measure.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/apache/ignite/ml/knn/ann/package-summary.html">org.apache.ignite.ml.knn.ann</a> that return <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">ANNClassificationTrainer.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/ann/ANNClassificationTrainer.html#getDistance--">getDistance</a></span>()</code>
<div class="block">Gets the distance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></code></td>
<td class="colLast"><span class="typeNameLabel">KNNModelFormat.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/ann/KNNModelFormat.html#getDistanceMeasure--">getDistanceMeasure</a></span>()</code>
<div class="block">Gets distance measure.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/apache/ignite/ml/knn/ann/package-summary.html">org.apache.ignite.ml.knn.ann</a> with parameters of type <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/ignite/ml/knn/ann/ANNClassificationTrainer.html" title="class in org.apache.ignite.ml.knn.ann">ANNClassificationTrainer</a></code></td>
<td class="colLast"><span class="typeNameLabel">ANNClassificationTrainer.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/ann/ANNClassificationTrainer.html#withDistance-org.apache.ignite.ml.math.distances.DistanceMeasure-">withDistance</a></span>(<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distance)</code>
<div class="block">Set up the distance.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../../../org/apache/ignite/ml/knn/ann/package-summary.html">org.apache.ignite.ml.knn.ann</a> with parameters of type <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/ann/ANNModelFormat.html#ANNModelFormat-int-org.apache.ignite.ml.math.distances.DistanceMeasure-boolean-org.apache.ignite.ml.structures.LabeledVectorSet-org.apache.ignite.ml.knn.ann.ANNClassificationTrainer.CentroidStat-">ANNModelFormat</a></span>(int&nbsp;k,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;measure,
boolean&nbsp;weighted,
<a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVectorSet.html" title="class in org.apache.ignite.ml.structures">LabeledVectorSet</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures">LabeledVector</a>&gt;&nbsp;candidates,
<a href="../../../../../../../org/apache/ignite/ml/knn/ann/ANNClassificationTrainer.CentroidStat.html" title="class in org.apache.ignite.ml.knn.ann">ANNClassificationTrainer.CentroidStat</a>&nbsp;candidatesStat)</code>
<div class="block">Creates an instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/ann/KNNModelFormat.html#KNNModelFormat-int-org.apache.ignite.ml.math.distances.DistanceMeasure-boolean-">KNNModelFormat</a></span>(int&nbsp;k,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;measure,
boolean&nbsp;weighted)</code>
<div class="block">Creates an instance.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.ignite.ml.knn.utils">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a> in <a href="../../../../../../../org/apache/ignite/ml/knn/utils/package-summary.html">org.apache.ignite.ml.knn.utils</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/apache/ignite/ml/knn/utils/package-summary.html">org.apache.ignite.ml.knn.utils</a> with parameters of type <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static &lt;L&gt;&nbsp;void</code></td>
<td class="colLast"><span class="typeNameLabel">PointWithDistanceUtil.</span><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/utils/PointWithDistanceUtil.html#tryToAddIntoHeap-java.util.Queue-int-org.apache.ignite.ml.math.primitives.vector.Vector-java.util.List-org.apache.ignite.ml.math.distances.DistanceMeasure-">tryToAddIntoHeap</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Queue.html?is-external=true" title="class or interface in java.util">Queue</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/knn/utils/PointWithDistance.html" title="class in org.apache.ignite.ml.knn.utils">PointWithDistance</a>&lt;L&gt;&gt;&nbsp;heap,
int&nbsp;k,
<a href="../../../../../../../org/apache/ignite/ml/math/primitives/vector/Vector.html" title="interface in org.apache.ignite.ml.math.primitives.vector">Vector</a>&nbsp;pnt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures">LabeledVector</a>&lt;L&gt;&gt;&nbsp;dataPnts,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure)</code>
<div class="block">Util method that adds data points into heap if they fits (if heap size is less than <code>k</code> or a distance from
taget point to data point is less than a distance from target point to the most distant data point in heap).</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.ignite.ml.knn.utils.indices">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a> in <a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/package-summary.html">org.apache.ignite.ml.knn.utils.indices</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/package-summary.html">org.apache.ignite.ml.knn.utils.indices</a> with parameters of type <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/ArraySpatialIndex.html#ArraySpatialIndex-java.util.List-org.apache.ignite.ml.math.distances.DistanceMeasure-">ArraySpatialIndex</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures">LabeledVector</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/ArraySpatialIndex.html" title="type parameter in ArraySpatialIndex">L</a>&gt;&gt;&nbsp;data,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure)</code>
<div class="block">Construct a new array spatial index.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/BallTreeSpatialIndex.html#BallTreeSpatialIndex-java.util.List-org.apache.ignite.ml.math.distances.DistanceMeasure-">BallTreeSpatialIndex</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures">LabeledVector</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/BallTreeSpatialIndex.html" title="type parameter in BallTreeSpatialIndex">L</a>&gt;&gt;&nbsp;data,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure)</code>
<div class="block">Constructs a new instance of Ball tree spatial index.</div>
</td>
</tr>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/KDTreeSpatialIndex.html#KDTreeSpatialIndex-java.util.List-org.apache.ignite.ml.math.distances.DistanceMeasure-">KDTreeSpatialIndex</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/structures/LabeledVector.html" title="class in org.apache.ignite.ml.structures">LabeledVector</a>&lt;<a href="../../../../../../../org/apache/ignite/ml/knn/utils/indices/KDTreeSpatialIndex.html" title="type parameter in KDTreeSpatialIndex">L</a>&gt;&gt;&nbsp;data,
<a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a>&nbsp;distanceMeasure)</code>
<div class="block">Constructs a new instance of KD tree spatial index.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.ignite.ml.math.distances">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a> in <a href="../../../../../../../org/apache/ignite/ml/math/distances/package-summary.html">org.apache.ignite.ml.math.distances</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../../org/apache/ignite/ml/math/distances/package-summary.html">org.apache.ignite.ml.math.distances</a> that implement <a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">DistanceMeasure</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/distances/ChebyshevDistance.html" title="class in org.apache.ignite.ml.math.distances">ChebyshevDistance</a></span></code>
<div class="block">Calculates the <code>max(x_i - y_i)</code> (Chebyshev) distance between two points.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/distances/CosineSimilarity.html" title="class in org.apache.ignite.ml.math.distances">CosineSimilarity</a></span></code>
<div class="block">Calculates the <code>A * B / (|A| * |B|)</code> (Cosine similarity) distance between two points.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/distances/EuclideanDistance.html" title="class in org.apache.ignite.ml.math.distances">EuclideanDistance</a></span></code>
<div class="block">Calculates the L<sub>2</sub> (Euclidean) distance between two points.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/distances/HammingDistance.html" title="class in org.apache.ignite.ml.math.distances">HammingDistance</a></span></code>
<div class="block">Calculates the Hamming distance between two points.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/distances/JaccardIndex.html" title="class in org.apache.ignite.ml.math.distances">JaccardIndex</a></span></code>
<div class="block">Calculates <code>J = |A \cap B| / |A \cup B| </code> (Jaccard index) distance between two points.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/distances/ManhattanDistance.html" title="class in org.apache.ignite.ml.math.distances">ManhattanDistance</a></span></code>
<div class="block">Calculates the L<sub>1</sub> (sum of abs) distance between two points.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/ignite/ml/math/distances/MinkowskiDistance.html" title="class in org.apache.ignite.ml.math.distances">MinkowskiDistance</a></span></code>
<div class="block">Calculates the L<sub>p</sub> (Minkowski) distance between two points.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/apache/ignite/ml/math/distances/DistanceMeasure.html" title="interface in org.apache.ignite.ml.math.distances">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/ignite/ml/math/distances/class-use/DistanceMeasure.html" target="_top">Frames</a></li>
<li><a href="DistanceMeasure.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px"> <tr> <td> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <a target=_blank href="https://ignite.apache.org"><nobr>2020 Copyright &#169; Apache Software Foundation</nobr></a> </td> </tr> </tbody> </table> </td> <td width="100%" align="right" valign="center"> <a href="https://twitter.com/ApacheIgnite" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @ApacheIgnite</a> </td> </tr> <tr> <td colspan="2" valign="top" align="left"> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <b>Ignite Database and Caching Platform</b> </td> <td>:&nbsp;&nbsp; ver. <strong>2.9.1</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>:&nbsp;&nbsp; December 9 2020 </td> </tr> </tbody> </table> </td> </tr> </table></small></p>
</body>
</html>