[ 
https://issues.apache.org/jira/browse/MATH-1580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gilles Sadowski updated MATH-1580:
----------------------------------
    Description: 
Codes under directory {{src/userguide}} don't compile anymore.

Several examples are outdated (points marked with (/) have been resolved):
 * Illustration of distributions (corresponding code is now in "Commons 
Statistics") (/)
 * Illustration of some geometrical algorithms (corresponding code is now in 
"Commons Geometry") (/)
 * Custom benchmark for class {{FastMath}} (should be replaced by JMH) (x)
 * Illustration of the clustering algorithms (/)
 * Usage examples of the classes in package {{o.a.c.m.legacy.filter}} (x)
 * Usage examples of the classes in package {{o.a.c.m.legacy.genetics}} (x)
 * Illustration of low discrepancy sequences (x)

The examples should either be deleted or fixed (and moved either into module 
"commons-math-examples" or the respective components).

  was:
Codes under directory {{src/userguide}} don't compile anymore.

Several examples are outdated (points marked with (/) have been resolved):
 * Illustration of distributions (corresponding code is now in "Commons 
Statistics") (/)
 * Illustration of some geometrical algorithms (corresponding code is now in 
"Commons Geometry") (/)
 * Custom benchmark for class {{FastMath}} (should be replaced by JMH) (x)
 * Illustration of the clustering algorithms (x)
 * Usage examples of the classes in package {{o.a.c.m.legacy.filter}} (x)
 * Usage examples of the classes in package {{o.a.c.m.legacy.genetics}} (x)
 * Illustration of low discrepancy sequences (x)

The examples should either be deleted or fixed (and moved either into module 
"commons-math-examples" or the respective components).


I've created an {{examples-kmeans}} module, with an illustration of two of the 
available clustering algorithms.
I don't think it's worth porting the 
[{{ClusterAlgorithmComparison}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java;h=2c631f0bc145ff98a90a703980d6ea32d6e58db8;hb=HEAD]
 since it does not add anything and it would involve the same many changes I've 
done for the {{ImageClusteringExample}} class. It would be more useful to think 
about the refactoring (namely to allow multi-threaded usage).
Unless there is an objection, I'll thus simply remove class 
{{ClusterAlgorithmComparison}} (since it does not compile anymore).

> Outdated "userguide" examples
> -----------------------------
>
>                 Key: MATH-1580
>                 URL: https://issues.apache.org/jira/browse/MATH-1580
>             Project: Commons Math
>          Issue Type: Sub-task
>            Reporter: Gilles Sadowski
>            Priority: Major
>             Fix For: 4.0
>
>
> Codes under directory {{src/userguide}} don't compile anymore.
> Several examples are outdated (points marked with (/) have been resolved):
>  * Illustration of distributions (corresponding code is now in "Commons 
> Statistics") (/)
>  * Illustration of some geometrical algorithms (corresponding code is now in 
> "Commons Geometry") (/)
>  * Custom benchmark for class {{FastMath}} (should be replaced by JMH) (x)
>  * Illustration of the clustering algorithms (/)
>  * Usage examples of the classes in package {{o.a.c.m.legacy.filter}} (x)
>  * Usage examples of the classes in package {{o.a.c.m.legacy.genetics}} (x)
>  * Illustration of low discrepancy sequences (x)
> The examples should either be deleted or fixed (and moved either into module 
> "commons-math-examples" or the respective components).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to