# Clustering.jl Silhouettes Distances

**URL:** <https://discourse.julialang.org/t/clustering-jl-silhouettes-distances/33810>\
**Category:** General Usage\
**Tags:** k-means\
**Created:** [January 26, 2020, 2:34pm UTC](https://discourse.julialang.org/t/clustering-jl-silhouettes-distances/33810 "2020-01-26T14:34:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 18, 2022, 10:08am UTC](https://discourse.julialang.org/t/clustering-jl-silhouettes-distances/33810/4 "2022-07-18T10:08:50Z")

</div>

Please don’t resurrect old threads, and make an MWE with your question as per [this post](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

It’s likely that you just re-bound `mean` (or `silhouettes`) to a number somewhere in your code:

```julia
julia> using Statistics

julia> mean = 5
5

julia> mean(rand(10))
ERROR: MethodError: objects of type Int64 are not callable

```

Matt’s code from the post above works just fine for me in a new session.

---

_[View the full topic](https://discourse.julialang.org/t/clustering-jl-silhouettes-distances/33810)._
