Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] HierarchicalClustering cannot digest data of generic type anymore #321

Closed
kMutagene opened this issue Apr 18, 2024 · 0 comments · Fixed by #327
Closed

[BUG] HierarchicalClustering cannot digest data of generic type anymore #321

kMutagene opened this issue Apr 18, 2024 · 0 comments · Fixed by #327
Labels

Comments

@kMutagene
Copy link
Member

See

/// Builds a hierarchy of clusters of data containing cluster labels
let generate<'T> (distance:Distance<float[]>) (linker:Linker.LancWilliamsLinker) (data:array<float[]>) =
//#region Distance Caching
let cachedDist = DistanceCaching<float[]> (distance,linker)
let input = initPairsNR cachedDist data
whileLoop cachedDist input data.Length

while generate<'T> uses a generic, the data argument is hard coded to array<float[]>, which was not the case in older versions.

@kMutagene kMutagene added the bug label Apr 18, 2024
kevmal added a commit to kevmal/FSharp.Stats that referenced this issue Apr 25, 2024
@kevmal kevmal mentioned this issue Apr 25, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant