org.apache.mahout.clustering
Interface Printable

All Known Subinterfaces:
Model<O>
All Known Implementing Classes:
AsymmetricSampledNormalModel, Canopy, Cluster, ClusterBase, DirichletCluster, L1Model, MeanShiftCanopy, NormalModel, SampledNormalModel, SoftCluster

public interface Printable

Implementations of this interface have a printable representation. This representation may be enhanced by an optional Vector label bindings dictionary.


Method Summary
 java.lang.String asFormatString(java.lang.String[] bindings)
          Produce a custom, printable representation of the receiver.
 java.lang.String asJsonString()
          Produce a printable representation of the receiver using Json.
 

Method Detail

asFormatString

java.lang.String asFormatString(java.lang.String[] bindings)
Produce a custom, printable representation of the receiver.

Parameters:
bindings - an optional String[] containing labels used to format the primary Vector/s of this implementation.
Returns:
a String

asJsonString

java.lang.String asJsonString()
Produce a printable representation of the receiver using Json. (Label bindings are transient and not part of the Json representation)

Returns:
a Json String


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.