blob: 7821c414a72dc0fbd4bd1e85664b949afa567627 [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:11:34 PDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AbstractCluster (Mahout Map-Reduce 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="AbstractCluster (Mahout Map-Reduce 0.13.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":9,"i7":9,"i8":10,"i9":10,"i10":6,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete 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/AbstractCluster.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>Prev&nbsp;Class</li>
<li><a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mahout/clustering/AbstractCluster.html" target="_top">Frames</a></li>
<li><a href="AbstractCluster.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>Field&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.clustering</div>
<h2 title="Class AbstractCluster" class="title">Class AbstractCluster</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>org.apache.mahout.clustering.AbstractCluster</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>org.apache.hadoop.io.Writable, <a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a>, <a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;, <a href="../../../../org/apache/mahout/common/parameters/Parametered.html" title="interface in org.apache.mahout.common.parameters">Parametered</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/apache/mahout/clustering/iterator/DistanceMeasureCluster.html" title="class in org.apache.mahout.clustering.iterator">DistanceMeasureCluster</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">AbstractCluster</span>
extends <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>
implements <a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a></pre>
</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.common.parameters.Parametered">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.apache.mahout.common.parameters.<a href="../../../../org/apache/mahout/common/parameters/Parametered.html" title="interface in org.apache.mahout.common.parameters">Parametered</a></h3>
<code><a href="../../../../org/apache/mahout/common/parameters/Parametered.ParameteredGeneralizations.html" title="class in org.apache.mahout.common.parameters">Parametered.ParameteredGeneralizations</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.clustering.Cluster">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;org.apache.mahout.clustering.<a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a></h3>
<code><a href="../../../../org/apache/mahout/clustering/Cluster.html#CLUSTERS_DIR">CLUSTERS_DIR</a>, <a href="../../../../org/apache/mahout/clustering/Cluster.html#FINAL_ITERATION_SUFFIX">FINAL_ITERATION_SUFFIX</a>, <a href="../../../../org/apache/mahout/clustering/Cluster.html#INITIAL_CLUSTERS_DIR">INITIAL_CLUSTERS_DIR</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.mahout.common.parameters.Parametered">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;org.apache.mahout.common.parameters.<a href="../../../../org/apache/mahout/common/parameters/Parametered.html" title="interface in org.apache.mahout.common.parameters">Parametered</a></h3>
<code><a href="../../../../org/apache/mahout/common/parameters/Parametered.html#log">log</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="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#AbstractCluster--">AbstractCluster</a></span>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#AbstractCluster-org.apache.mahout.math.Vector-int-">AbstractCluster</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;point,
int&nbsp;id2)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#AbstractCluster-org.apache.mahout.math.Vector-org.apache.mahout.math.Vector-int-">AbstractCluster</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;center2,
<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;radius2,
int&nbsp;id2)</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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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></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><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/clustering/AbstractCluster.html#asFormatString-java.lang.String:A-">asFormatString</a></span>(<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;bindings)</code>
<div class="block">Produce a custom, human-friendly, printable representation of the Cluster.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<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>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#asJson-java.lang.String:A-">asJson</a></span>(<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;bindings)</code>
<div class="block">Produce a JSON representation of the Cluster.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#computeCentroid--">computeCentroid</a></span>()</code>
<div class="block">Compute the centroid by averaging the pointTotals</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#computeParameters--">computeParameters</a></span>()</code>
<div class="block">Compute a new set of posterior parameters based upon the Observations that
have been observed since my creation</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#configure-org.apache.hadoop.conf.Configuration-">configure</a></span>(org.apache.hadoop.conf.Configuration&nbsp;job)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#createParameters-java.lang.String-org.apache.hadoop.conf.Configuration-">createParameters</a></span>(<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;prefix,
org.apache.hadoop.conf.Configuration&nbsp;jobConf)</code>
<div class="block">EXPERT: consumers should never have to call this method.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <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/clustering/AbstractCluster.html#formatVector-org.apache.mahout.math.Vector-java.lang.String:A-">formatVector</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;v,
<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;bindings)</code>
<div class="block">Return a human-readable formatted string representation of the vector, not
intended to be complete nor usable as an input/output representation</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<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>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#formatVectorAsJson-org.apache.mahout.math.Vector-java.lang.String:A-">formatVectorAsJson</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;v,
<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;bindings)</code>
<div class="block">Create a List of HashMaps containing vector terms and weights</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getCenter--">getCenter</a></span>()</code>
<div class="block">Get the "center" of the Cluster as a Vector</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getId--">getId</a></span>()</code>
<div class="block">Get the id of the Cluster</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>abstract <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/clustering/AbstractCluster.html#getIdentifier--">getIdentifier</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getNumObservations--">getNumObservations</a></span>()</code>
<div class="block">Return the number of observations that this model has seen since its
parameters were last computed</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/mahout/common/parameters/Parameter.html" title="interface in org.apache.mahout.common.parameters">Parameter</a>&lt;?&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getParameters--">getParameters</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getRadius--">getRadius</a></span>()</code>
<div class="block">Get the "radius" of the Cluster as a Vector.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>protected double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getS0--">getS0</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>protected <a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getS1--">getS1</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>protected <a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getS2--">getS2</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#getTotalObservations--">getTotalObservations</a></span>()</code>
<div class="block">Return the number of observations that this model has seen over its
lifetime</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#isConverged--">isConverged</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#observe-org.apache.mahout.clustering.Model-">observe</a></span>(<a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;&nbsp;x)</code>
<div class="block">Observe the given model, retaining information about its observations</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#observe-org.apache.mahout.math.Vector-">observe</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;x)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#observe-org.apache.mahout.math.Vector-double-">observe</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;x,
double&nbsp;weight)</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#observe-org.apache.mahout.math.VectorWritable-">observe</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&nbsp;x)</code>
<div class="block">Observe the given observation, retaining information about it</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#observe-org.apache.mahout.math.VectorWritable-double-">observe</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&nbsp;x,
double&nbsp;weight)</code>
<div class="block">Observe the given observation, retaining information about it</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#readFields-java.io.DataInput-">readFields</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a>&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#setCenter-org.apache.mahout.math.Vector-">setCenter</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;center)</code>&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#setId-int-">setId</a></span>(int&nbsp;id)</code>&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#setNumObservations-long-">setNumObservations</a></span>(long&nbsp;l)</code>&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#setRadius-org.apache.mahout.math.Vector-">setRadius</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;radius)</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#setS0-double-">setS0</a></span>(double&nbsp;s0)</code>&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#setS1-org.apache.mahout.math.Vector-">setS1</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;s1)</code>&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#setS2-org.apache.mahout.math.Vector-">setS2</a></span>(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;s2)</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#setTotalObservations-long-">setTotalObservations</a></span>(long&nbsp;totalPoints)</code>&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mahout/clustering/AbstractCluster.html#write-java.io.DataOutput-">write</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</a>&nbsp;out)</code>&nbsp;</td>
</tr>
</table>
<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#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <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#hashCode--" title="class or interface in java.lang">hashCode</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#toString--" title="class or interface in java.lang">toString</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>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.clustering.Model">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.mahout.clustering.<a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a></h3>
<code><a href="../../../../org/apache/mahout/clustering/Model.html#pdf-O-">pdf</a>, <a href="../../../../org/apache/mahout/clustering/Model.html#sampleFromPosterior--">sampleFromPosterior</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="AbstractCluster--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AbstractCluster</h4>
<pre>protected&nbsp;AbstractCluster()</pre>
</li>
</ul>
<a name="AbstractCluster-org.apache.mahout.math.Vector-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AbstractCluster</h4>
<pre>protected&nbsp;AbstractCluster(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;point,
int&nbsp;id2)</pre>
</li>
</ul>
<a name="AbstractCluster-org.apache.mahout.math.Vector-org.apache.mahout.math.Vector-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>AbstractCluster</h4>
<pre>protected&nbsp;AbstractCluster(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;center2,
<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;radius2,
int&nbsp;id2)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="write-java.io.DataOutput-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public&nbsp;void&nbsp;write(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</a>&nbsp;out)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>write</code>&nbsp;in interface&nbsp;<code>org.apache.hadoop.io.Writable</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="readFields-java.io.DataInput-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readFields</h4>
<pre>public&nbsp;void&nbsp;readFields(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a>&nbsp;in)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>readFields</code>&nbsp;in interface&nbsp;<code>org.apache.hadoop.io.Writable</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="configure-org.apache.hadoop.conf.Configuration-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configure</h4>
<pre>public&nbsp;void&nbsp;configure(org.apache.hadoop.conf.Configuration&nbsp;job)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/common/parameters/Parametered.html#configure-org.apache.hadoop.conf.Configuration-">configure</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/common/parameters/Parametered.html" title="interface in org.apache.mahout.common.parameters">Parametered</a></code></dd>
</dl>
</li>
</ul>
<a name="getParameters--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParameters</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/mahout/common/parameters/Parameter.html" title="interface in org.apache.mahout.common.parameters">Parameter</a>&lt;?&gt;&gt;&nbsp;getParameters()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/common/parameters/Parametered.html#getParameters--">getParameters</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/common/parameters/Parametered.html" title="interface in org.apache.mahout.common.parameters">Parametered</a></code></dd>
</dl>
</li>
</ul>
<a name="createParameters-java.lang.String-org.apache.hadoop.conf.Configuration-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createParameters</h4>
<pre>public&nbsp;void&nbsp;createParameters(<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;prefix,
org.apache.hadoop.conf.Configuration&nbsp;jobConf)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/common/parameters/Parametered.html#createParameters-java.lang.String-org.apache.hadoop.conf.Configuration-">Parametered</a></code></span></div>
<div class="block">EXPERT: consumers should never have to call this method. It would be friendly visible to
<a href="../../../../org/apache/mahout/common/parameters/Parametered.ParameteredGeneralizations.html" title="class in org.apache.mahout.common.parameters"><code>Parametered.ParameteredGeneralizations</code></a> if java supported it. Calling this method should create a new list of
parameters and is called</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/common/parameters/Parametered.html#createParameters-java.lang.String-org.apache.hadoop.conf.Configuration-">createParameters</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/common/parameters/Parametered.html" title="interface in org.apache.mahout.common.parameters">Parametered</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>prefix</code> - ends with a dot if not empty.</dd>
<dd><code>jobConf</code> - configuration used for retrieving values</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/mahout/common/parameters/Parametered.ParameteredGeneralizations.html#configureParameters-java.lang.String-org.apache.mahout.common.parameters.Parametered-org.apache.hadoop.conf.Configuration-"><code>invoking method</code></a>,
<a href="../../../../org/apache/mahout/common/parameters/Parametered.ParameteredGeneralizations.html#configureParametersRecursively-org.apache.mahout.common.parameters.Parametered-java.lang.String-org.apache.hadoop.conf.Configuration-"><code>invoking method</code></a></dd>
</dl>
</li>
</ul>
<a name="getId--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getId</h4>
<pre>public&nbsp;int&nbsp;getId()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html#getId--">Cluster</a></code></span></div>
<div class="block">Get the id of the Cluster</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Cluster.html#getId--">getId</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a unique integer</dd>
</dl>
</li>
</ul>
<a name="setId-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setId</h4>
<pre>protected&nbsp;void&nbsp;setId(int&nbsp;id)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the id to set</dd>
</dl>
</li>
</ul>
<a name="getNumObservations--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumObservations</h4>
<pre>public&nbsp;long&nbsp;getNumObservations()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html#getNumObservations--">Model</a></code></span></div>
<div class="block">Return the number of observations that this model has seen since its
parameters were last computed</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Model.html#getNumObservations--">getNumObservations</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a long</dd>
</dl>
</li>
</ul>
<a name="setNumObservations-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNumObservations</h4>
<pre>protected&nbsp;void&nbsp;setNumObservations(long&nbsp;l)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>l</code> - the numPoints to set</dd>
</dl>
</li>
</ul>
<a name="getTotalObservations--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTotalObservations</h4>
<pre>public&nbsp;long&nbsp;getTotalObservations()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html#getTotalObservations--">Model</a></code></span></div>
<div class="block">Return the number of observations that this model has seen over its
lifetime</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Model.html#getTotalObservations--">getTotalObservations</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a long</dd>
</dl>
</li>
</ul>
<a name="setTotalObservations-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTotalObservations</h4>
<pre>protected&nbsp;void&nbsp;setTotalObservations(long&nbsp;totalPoints)</pre>
</li>
</ul>
<a name="getCenter--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCenter</h4>
<pre>public&nbsp;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;getCenter()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html#getCenter--">Cluster</a></code></span></div>
<div class="block">Get the "center" of the Cluster as a Vector</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Cluster.html#getCenter--">getCenter</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a Vector</dd>
</dl>
</li>
</ul>
<a name="setCenter-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCenter</h4>
<pre>protected&nbsp;void&nbsp;setCenter(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;center)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>center</code> - the center to set</dd>
</dl>
</li>
</ul>
<a name="getRadius--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRadius</h4>
<pre>public&nbsp;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;getRadius()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html#getRadius--">Cluster</a></code></span></div>
<div class="block">Get the "radius" of the Cluster as a Vector. Usually the radius is the
standard deviation expressed as a Vector of size equal to the center. Some
clusters may return zero values if not appropriate.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Cluster.html#getRadius--">getRadius</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>aVector</dd>
</dl>
</li>
</ul>
<a name="setRadius-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRadius</h4>
<pre>protected&nbsp;void&nbsp;setRadius(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;radius)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>radius</code> - the radius to set</dd>
</dl>
</li>
</ul>
<a name="getS0--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getS0</h4>
<pre>protected&nbsp;double&nbsp;getS0()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the s0</dd>
</dl>
</li>
</ul>
<a name="setS0-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setS0</h4>
<pre>protected&nbsp;void&nbsp;setS0(double&nbsp;s0)</pre>
</li>
</ul>
<a name="getS1--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getS1</h4>
<pre>protected&nbsp;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;getS1()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the s1</dd>
</dl>
</li>
</ul>
<a name="setS1-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setS1</h4>
<pre>protected&nbsp;void&nbsp;setS1(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;s1)</pre>
</li>
</ul>
<a name="getS2--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getS2</h4>
<pre>protected&nbsp;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;getS2()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the s2</dd>
</dl>
</li>
</ul>
<a name="setS2-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setS2</h4>
<pre>protected&nbsp;void&nbsp;setS2(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;s2)</pre>
</li>
</ul>
<a name="observe-org.apache.mahout.clustering.Model-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>observe</h4>
<pre>public&nbsp;void&nbsp;observe(<a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;&nbsp;x)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html#observe-org.apache.mahout.clustering.Model-">Model</a></code></span></div>
<div class="block">Observe the given model, retaining information about its observations</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Model.html#observe-org.apache.mahout.clustering.Model-">observe</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - a Model<0></dd>
</dl>
</li>
</ul>
<a name="observe-org.apache.mahout.math.VectorWritable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>observe</h4>
<pre>public&nbsp;void&nbsp;observe(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&nbsp;x)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html#observe-O-">Model</a></code></span></div>
<div class="block">Observe the given observation, retaining information about it</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Model.html#observe-O-">observe</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - an Observation from the posterior</dd>
</dl>
</li>
</ul>
<a name="observe-org.apache.mahout.math.VectorWritable-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>observe</h4>
<pre>public&nbsp;void&nbsp;observe(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&nbsp;x,
double&nbsp;weight)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html#observe-O-double-">Model</a></code></span></div>
<div class="block">Observe the given observation, retaining information about it</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Model.html#observe-O-double-">observe</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - an Observation from the posterior</dd>
<dd><code>weight</code> - a double weighting factor</dd>
</dl>
</li>
</ul>
<a name="observe-org.apache.mahout.math.Vector-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>observe</h4>
<pre>public&nbsp;void&nbsp;observe(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;x,
double&nbsp;weight)</pre>
</li>
</ul>
<a name="observe-org.apache.mahout.math.Vector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>observe</h4>
<pre>public&nbsp;void&nbsp;observe(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;x)</pre>
</li>
</ul>
<a name="computeParameters--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeParameters</h4>
<pre>public&nbsp;void&nbsp;computeParameters()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html#computeParameters--">Model</a></code></span></div>
<div class="block">Compute a new set of posterior parameters based upon the Observations that
have been observed since my creation</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Model.html#computeParameters--">computeParameters</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Model.html" title="interface in org.apache.mahout.clustering">Model</a>&lt;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/VectorWritable.html?is-external=true" title="class or interface in org.apache.mahout.math">VectorWritable</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="asFormatString-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asFormatString</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;asFormatString(<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;bindings)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html#asFormatString-java.lang.String:A-">Cluster</a></code></span></div>
<div class="block">Produce a custom, human-friendly, printable representation of the Cluster.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Cluster.html#asFormatString-java.lang.String:A-">asFormatString</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bindings</code> - an optional String[] containing labels used to format the primary
Vector/s of this implementation.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a String</dd>
</dl>
</li>
</ul>
<a name="asJson-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asJson</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<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>&gt;&nbsp;asJson(<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;bindings)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html#asJson-java.lang.String:A-">Cluster</a></code></span></div>
<div class="block">Produce a JSON representation of the Cluster.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Cluster.html#asJson-java.lang.String:A-">asJson</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bindings</code> - an optional String[] containing labels used to format the primary
Vector/s of this implementation.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a Map</dd>
</dl>
</li>
</ul>
<a name="getIdentifier--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIdentifier</h4>
<pre>public abstract&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;getIdentifier()</pre>
</li>
</ul>
<a name="computeCentroid--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeCentroid</h4>
<pre>public&nbsp;<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;computeCentroid()</pre>
<div class="block">Compute the centroid by averaging the pointTotals</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the new centroid</dd>
</dl>
</li>
</ul>
<a name="formatVector-org.apache.mahout.math.Vector-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>formatVector</h4>
<pre>public static&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;formatVector(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;v,
<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;bindings)</pre>
<div class="block">Return a human-readable formatted string representation of the vector, not
intended to be complete nor usable as an input/output representation</div>
</li>
</ul>
<a name="formatVectorAsJson-org.apache.mahout.math.Vector-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>formatVectorAsJson</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<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>&gt;&nbsp;formatVectorAsJson(<a href="http://mahout.apache.org/mahout-math/apidocs/org/apache/mahout/math/Vector.html?is-external=true" title="class or interface in org.apache.mahout.math">Vector</a>&nbsp;v,
<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;bindings)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a List of HashMaps containing vector terms and weights</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>List<Object></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="isConverged--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isConverged</h4>
<pre>public&nbsp;boolean&nbsp;isConverged()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mahout/clustering/Cluster.html#isConverged--">isConverged</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering">Cluster</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>if the receiver has converged, or false if that has no meaning for
the implementation</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/AbstractCluster.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>Prev&nbsp;Class</li>
<li><a href="../../../../org/apache/mahout/clustering/Cluster.html" title="interface in org.apache.mahout.clustering"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mahout/clustering/AbstractCluster.html" target="_top">Frames</a></li>
<li><a href="AbstractCluster.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>Field&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>