Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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