File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 12
12
Hclust
13
13
```
14
14
15
- ``` @example Single-linkage clustering using distance matrix
15
+ Single-linkage clustering using distance matrix:
16
+ ``` @example
16
17
using Clustering
17
18
D = rand(1000, 1000);
18
19
D += D'; # symmetric distance matrix (optional)
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ kmeans!
27
27
28
28
## Examples
29
29
30
- ``` @example julia
30
+ ``` @example
31
31
using Clustering
32
32
33
33
# make a random dataset with 1000 random 5-dimensional points
@@ -43,7 +43,8 @@ c = counts(R) # get the cluster sizes
43
43
M = R.centers # get the cluster centers
44
44
```
45
45
46
- ``` @example Scatter plot of the K-means clustering results
46
+ Scatter plot of the K-means clustering results:
47
+ ``` @example
47
48
using RDatasets, Clustering, Plots
48
49
iris = dataset("datasets", "iris"); # load the data
49
50
You can’t perform that action at this time.
0 commit comments