Skip to content

Commit

Permalink
Update MixtureFactory_doc.i.in
Browse files Browse the repository at this point in the history
Document BuildClusters
  • Loading branch information
mbaudin47 authored Jun 14, 2024
1 parent feb501a commit 817f266
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions python/src/MixtureFactory_doc.i.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,23 @@ Returns
atomsNumber : int
The number of atoms
"

// ----------------------------------------------------------------------------

%feature("docstring") OTMIXMOD::MixtureFactory::BuildClusters
"Partition a given sample into nbClusters according to the given labels.

Parameters
----------
data : ot.Sample(size, dimension)
The sample
labels : ot.Indices(size)
The index of the class of each point in the sample
nbClusters : int
The number of clusters in the mixture

Returns
-------
clusters : list of ot.Sample
The list of samples corresponding to each class
"

0 comments on commit 817f266

Please sign in to comment.