blob: f3e71aceaa6162b0baced9ea7f6009939f40684f [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>
<!-- Generated by javadoc (1.8.0_121) on Fri Apr 14 22:10:57 PDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Centroid (Mahout Math 0.13.0 API)</title>
<meta name="date" content="2017-04-14">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Centroid (Mahout Math 0.13.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":9,"i3":42,"i4":10,"i5":10,"i6":10,"i7":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</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 class="navBarCell1Rev">Class</li>
<li><a href="class-use/Centroid.html">Use</a></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><a href="../../../../org/apache/mahout/math/CardinalityException.html" title="class in org.apache.mahout.math"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/mahout/math/CholeskyDecomposition.html" title="class in org.apache.mahout.math"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mahout/math/Centroid.html" target="_top">Frames</a></li>
<li><a href="Centroid.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>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.mahout.math.DelegatingVector">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.mahout.math</div>
<h2 title="Class Centroid" class="title">Class Centroid</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/mahout/math/DelegatingVector.html" title="class in org.apache.mahout.math">org.apache.mahout.math.DelegatingVector</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/mahout/math/WeightedVector.html" title="class in org.apache.mahout.math">org.apache.mahout.math.WeightedVector</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mahout.math.Centroid</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">Centroid</span>
extends <a href="../../../../org/apache/mahout/math/WeightedVector.html" title="class in org.apache.mahout.math">WeightedVector</a></pre>
<div class="block">A centroid is a weighted vector. We have it delegate to the vector itself for lots of operations
to make it easy to use vector search classes and such.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.mahout.math.Vector">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.apache.mahout.math.<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a></h3>
<code><a href="../../../../org/apache/mahout/math/Vector.Element.html" title="interface in org.apache.mahout.math">Vector.Element</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.mahout.math.DelegatingVector">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.mahout.math.<a href="../../../../org/apache/mahout/math/DelegatingVector.html" title="class in org.apache.mahout.math">DelegatingVector</a></h3>
<code><a href="../../../../org/apache/mahout/math/DelegatingVector.html#delegate">delegate</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#Centroid-int-org.apache.mahout.math.Vector-">Centroid</a></span>(int&nbsp;key,
<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;initialValue)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#Centroid-int-org.apache.mahout.math.Vector-double-">Centroid</a></span>(int&nbsp;key,
<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;initialValue,
double&nbsp;weight)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#Centroid-org.apache.mahout.math.WeightedVector-">Centroid</a></span>(<a href="../../../../org/apache/mahout/math/WeightedVector.html" title="class in org.apache.mahout.math">WeightedVector</a>&nbsp;original)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#addWeight-double-">addWeight</a></span>(double&nbsp;newWeight)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/mahout/math/Centroid.html" title="class in org.apache.mahout.math">Centroid</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#clone--">clone</a></span>()</code>
<div class="block">Return a copy of the recipient</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/mahout/math/Centroid.html" title="class in org.apache.mahout.math">Centroid</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#create-int-org.apache.mahout.math.Vector-">create</a></span>(int&nbsp;key,
<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;initialValue)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#getKey--">getKey</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/mahout/math/Centroid.html" title="class in org.apache.mahout.math">Centroid</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#like--">like</a></span>()</code>
<div class="block">Return an empty vector of the same underlying class as the receiver</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#update-org.apache.mahout.math.Vector-">update</a></span>(<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;v)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/math/Centroid.html#update-org.apache.mahout.math.Vector-double-">update</a></span>(<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;other,
double&nbsp;wy)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.WeightedVector">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.math.<a href="../../../../org/apache/mahout/math/WeightedVector.html" title="class in org.apache.mahout.math">WeightedVector</a></h3>
<code><a href="../../../../org/apache/mahout/math/WeightedVector.html#getIndex--">getIndex</a>, <a href="../../../../org/apache/mahout/math/WeightedVector.html#getWeight--">getWeight</a>, <a href="../../../../org/apache/mahout/math/WeightedVector.html#project-org.apache.mahout.math.Vector-org.apache.mahout.math.Vector-">project</a>, <a href="../../../../org/apache/mahout/math/WeightedVector.html#project-org.apache.mahout.math.Vector-org.apache.mahout.math.Vector-int-">project</a>, <a href="../../../../org/apache/mahout/math/WeightedVector.html#setIndex-int-">setIndex</a>, <a href="../../../../org/apache/mahout/math/WeightedVector.html#setWeight-double-">setWeight</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.DelegatingVector">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.math.<a href="../../../../org/apache/mahout/math/DelegatingVector.html" title="class in org.apache.mahout.math">DelegatingVector</a></h3>
<code><a href="../../../../org/apache/mahout/math/DelegatingVector.html#aggregate-org.apache.mahout.math.function.DoubleDoubleFunction-org.apache.mahout.math.function.DoubleFunction-">aggregate</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#aggregate-org.apache.mahout.math.Vector-org.apache.mahout.math.function.DoubleDoubleFunction-org.apache.mahout.math.function.DoubleDoubleFunction-">aggregate</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#all--">all</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#asFormatString--">asFormatString</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#assign-double-">assign</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#assign-double:A-">assign</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#assign-org.apache.mahout.math.function.DoubleDoubleFunction-double-">assign</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#assign-org.apache.mahout.math.function.DoubleFunction-">assign</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#assign-org.apache.mahout.math.Vector-">assign</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#assign-org.apache.mahout.math.Vector-org.apache.mahout.math.function.DoubleDoubleFunction-">assign</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#cross-org.apache.mahout.math.Vector-">cross</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#divide-double-">divide</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#dot-org.apache.mahout.math.Vector-">dot</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#equals-java.lang.Object-">equals</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#get-int-">get</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getDistanceSquared-org.apache.mahout.math.Vector-">getDistanceSquared</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getElement-int-">getElement</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getIteratorAdvanceCost--">getIteratorAdvanceCost</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getLengthSquared--">getLengthSquared</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getLookupCost--">getLookupCost</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getNumNondefaultElements--">getNumNondefaultElements</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getNumNonZeroElements--">getNumNonZeroElements</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getQuick-int-">getQuick</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#getVector--">getVector</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#hashCode--">hashCode</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#incrementQuick-int-double-">incrementQuick</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#invalidateCachedLength--">invalidateCachedLength</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#isAddConstantTime--">isAddConstantTime</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#isDense--">isDense</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#isSequentialAccess--">isSequentialAccess</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#like-int-">like</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#logNormalize--">logNormalize</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#logNormalize-double-">logNormalize</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#maxValue--">maxValue</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#maxValueIndex--">maxValueIndex</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#mergeUpdates-org.apache.mahout.math.OrderedIntDoubleMapping-">mergeUpdates</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#minus-org.apache.mahout.math.Vector-">minus</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#minValue--">minValue</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#minValueIndex--">minValueIndex</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#nonZeroes--">nonZeroes</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#norm-double-">norm</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#normalize--">normalize</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#normalize-double-">normalize</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#plus-double-">plus</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#plus-org.apache.mahout.math.Vector-">plus</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#set-int-double-">set</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#setQuick-int-double-">setQuick</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#size--">size</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#times-double-">times</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#times-org.apache.mahout.math.Vector-">times</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#viewPart-int-int-">viewPart</a>, <a href="../../../../org/apache/mahout/math/DelegatingVector.html#zSum--">zSum</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Centroid-org.apache.mahout.math.WeightedVector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Centroid</h4>
<pre>public&nbsp;Centroid(<a href="../../../../org/apache/mahout/math/WeightedVector.html" title="class in org.apache.mahout.math">WeightedVector</a>&nbsp;original)</pre>
</li>
</ul>
<a name="Centroid-int-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Centroid</h4>
<pre>public&nbsp;Centroid(int&nbsp;key,
<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;initialValue)</pre>
</li>
</ul>
<a name="Centroid-int-org.apache.mahout.math.Vector-double-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Centroid</h4>
<pre>public&nbsp;Centroid(int&nbsp;key,
<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;initialValue,
double&nbsp;weight)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="create-int-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/mahout/math/Centroid.html" title="class in org.apache.mahout.math">Centroid</a>&nbsp;create(int&nbsp;key,
<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;initialValue)</pre>
</li>
</ul>
<a name="update-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>update</h4>
<pre>public&nbsp;void&nbsp;update(<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;v)</pre>
</li>
</ul>
<a name="update-org.apache.mahout.math.Vector-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>update</h4>
<pre>public&nbsp;void&nbsp;update(<a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a>&nbsp;other,
double&nbsp;wy)</pre>
</li>
</ul>
<a name="like--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>like</h4>
<pre>public&nbsp;<a href="../../../../org/apache/mahout/math/Centroid.html" title="class in org.apache.mahout.math">Centroid</a>&nbsp;like()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/math/Vector.html#like--">Vector</a></code></span></div>
<div class="block">Return an empty vector of the same underlying class as the receiver</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/math/Vector.html#like--">like</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/math/WeightedVector.html#like--">like</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/mahout/math/WeightedVector.html" title="class in org.apache.mahout.math">WeightedVector</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a Vector</dd>
</dl>
</li>
</ul>
<a name="getKey--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKey</h4>
<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;int&nbsp;getKey()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Gets the index of this centroid. Use getIndex instead to maintain standard names.</div>
</li>
</ul>
<a name="addWeight-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addWeight</h4>
<pre>public&nbsp;void&nbsp;addWeight(double&nbsp;newWeight)</pre>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/math/WeightedVector.html#toString--">toString</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/mahout/math/WeightedVector.html" title="class in org.apache.mahout.math">WeightedVector</a></code></dd>
</dl>
</li>
</ul>
<a name="clone--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>clone</h4>
<pre>public&nbsp;<a href="../../../../org/apache/mahout/math/Centroid.html" title="class in org.apache.mahout.math">Centroid</a>&nbsp;clone()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/math/Vector.html#clone--">Vector</a></code></span></div>
<div class="block">Return a copy of the recipient</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/math/Vector.html#clone--">clone</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/math/Vector.html" title="interface in org.apache.mahout.math">Vector</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/math/WeightedVector.html#clone--">clone</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/mahout/math/WeightedVector.html" title="class in org.apache.mahout.math">WeightedVector</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new Vector</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= 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 class="navBarCell1Rev">Class</li>
<li><a href="class-use/Centroid.html">Use</a></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><a href="../../../../org/apache/mahout/math/CardinalityException.html" title="class in org.apache.mahout.math"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/mahout/math/CholeskyDecomposition.html" title="class in org.apache.mahout.math"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mahout/math/Centroid.html" target="_top">Frames</a></li>
<li><a href="Centroid.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>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.mahout.math.DelegatingVector">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>