Skip to content

In FNN::get.knnx(landmarklcms, idents, k = nlandmarks) k should be less than sample size #7

@EidrianGM

Description

@EidrianGM

When running msPIP function there is a point where the error mentioned in the title occurs.

I was wondering if the following is a valid solution:

nlandmarks <- min(50,nrow(landmarklcms))
# 50 because is the default of nlandmarks in the msPIP function 

The idea is to select the whole set of landmarks available in case that they are less than 50 to find the maximum number of nearest neighbors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions