|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
Unsupervised classification algorithm which performs fuzzy C-means
clustering. It is necessary to specify the number of classes that are
expected. Initial class centres are determined by assigning each sample
random membership to the class centres.
Parent Classes:
Methods:
- NumClassifyFuzzyCmeansC(UIntT numClasses,const NumMagnitudeC & distance,RealT m = 2.0)
-
Constructor
| numClasses | number of classes or clusters to look for |
| distance | metric to use when measuring sample distance from class centres |
| m | class membership weighting exponent |
|
- NumClassifyUnsupervisedC Copy() const
-
Makes a deep copy
- BooleanT IsA(const DPEntityC & pb)
-
Check if an object is a NumFuncConstant.
- NumClassifyUnsupervisedBC & Body()
-
Access body.
- const NumClassifyUnsupervisedBC & Body() const
-
Access body.
- void Initialise(UIntT numClasses,const DListC<VectorC> & trainX)
-
Initialises the clusters
| numClasses | number of clusters that will be set up |
| trainX | training samples used to determine initial centers |
|
- void Cluster(const DListC<VectorC> & trainX)
-
Used to train the classifier by clustering on unlabelled samples
- NumClassifyBC & Body()
-
Access body.
- const NumClassifyBC & Body() const
-
Access body.
- BooleanT IsA(const DPEntityC & pb)
-
Check if an object is a one of these.
- NumClassifyC Copy() const
-
Makes a deep copy
- NumLabelC Classify(const VectorC & X) const
-
Returns the class label corresponding to the feature vector X
- DListC<NumLabelC> Classify(const DListC<VectorC> & listX) const
-
Returns class labels corresponding to a list of X
- BooleanT IsA(const DPEntityC & pb)
-
Check if an object is a NumFuncC.
- NumFuncC Copy() const
-
Makes a deep copy
- NumFuncC & operator=(const NumFuncC & oth)
-
Assignment operator
- VectorC Evaluate(const VectorC & X) const
-
Evaluates function Y=f(X)
- DListC<VectorC> Evaluate(const DListC<VectorC> & listX) const
-
Evaluates function Y=f(X) for a list of X
- VectorC operator()(const VectorC & X) const
-
Evaluates function Y=f(X)
- MatrixC Jacobian(const VectorC & X) const
-
Evaluates Jacobian df(X)/dX
Note that this is not const=0 since the base class will calculate a
numerical estimate of the Jacobian using differences if the member
function is not overloaded in derived classes to provide an analytical
solution.
- const StringC GetInfo() const
-
Gets string describing object
- const StringC GetName() const
-
Gets type name of the object
- UIntT SizeX() const
-
Input vector dimension
- UIntT SizeY() const
-
Output vector dimension
- BooleanT Save(ostream & out) const
-
Writes object to stream, cna be loaded using constructor
- NumFuncBC & Body()
-
Access body.
- const NumFuncBC & Body() const
-
Access body.
- DPProcessBodyC<VectorC,VectorC> & Body()
-
Access body.
- const DPProcessBodyC<VectorC,VectorC> & Body() const
-
Access body.
- VectorC Apply(const VectorC & dat)
-
Apply operation.
NB. This may become constant in the future, but the situation isn't
clear at the moment.
- IntT ApplyArray(const SArray1dC<VectorC> & in,SArray1dC<VectorC> & out)
-
Streaming version.
- const DPProcessC<VectorC,VectorC> operator=(const DPProcessC<VectorC,VectorC> & in)
-
Assignment operator
- const DPProcessC<VectorC,VectorC> Copy() const
-
Make a copy of this process. Some type defs.
- DPProcessBaseBodyC & Body()
-
Access body.
- const DPProcessBaseBodyC & Body() const
-
Access body.
- const type_info & InputType() const
-
Get input type.
- const type_info & OutputType() const
-
Get input type.
- BooleanT IsStateless() const
-
Is operation stateless ?
- DPProcessBaseBodyC::ProcTypeT OpType() const
-
Operation type lossy/lossless.
- const DPProcessBaseC & operator=(const DPProcessBaseC & oth)
-
Assignment operator.
- const DPEntityC & operator=(const DPEntityC & dat)
-
Assignment.
- DPEntityBodyC & Body()
-
Access body.
- const DPEntityBodyC & Body() const
-
Access body.
- BooleanT Save(ostream & out) const
-
- RCAbstractC Abstract()
-
Create an abstract handle to this object.
- BooleanT IsHandleType(const DT &) const
-
Is handle of given type ?
- void CheckHandleType(const DT & dummy) const
-
Check handle type. Throw an expception if not.
- BooleanT Save(ostream & out) const
-
Save to ostream.
- RCHandleAC<DPEntityBodyC> Copy() const
-
Creat a deep copy of this object.
protected:
- BooleanT IsValid() const
-
Check its a valid handle.
- BooleanT IsValidObject() const
-
Check its a valid handle, and that the object is pointed to is also valid.
- RCHandleC<DPEntityBodyC> & operator=(const RCHandleC<DPEntityBodyC> & oth)
-
Assignment.
- BooleanT operator==(const RCHandleC<DPEntityBodyC> & oth) const
-
Comparison operator.
- BooleanT operator!=(const RCHandleC<DPEntityBodyC> & oth) const
-
Comparison operator.
- UIntT Hash() const
-
Hash function.x
- BooleanT IsConst() const
-
Is object constant ?
- BooleanT IsNotConst() const
-
Is object not constant ?
- void SetConst(void) const
-
Lock the object.
This is const as a convience though it actual modified the
object, often object you wish to ensure are constant already
have const set.
protected:
- void Invalidate()
-
Turn this into an invalid handle.
- DPEntityBodyC & Body()
-
Direct access to body.
- const DPEntityBodyC & Body() const
-
Constant access to body.
|
Programmer:Robert Crida, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|