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

The "k" value of function duplex can not greater than half ? #70

Open
A-Pai opened this issue Oct 21, 2024 · 0 comments
Open

The "k" value of function duplex can not greater than half ? #70

A-Pai opened this issue Oct 21, 2024 · 0 comments

Comments

@A-Pai
Copy link

A-Pai commented Oct 21, 2024

library(prospectr)

size=100
d <- matrix(rnorm(size * 2, 1, 0.1), nc = 2)

I1 <- duplex(d, k = size * 0.5, metric = "euclid")$model
cat(length(I1))

I2 <- duplex(d, k = size * 0.6, metric = "euclid")$model
cat("\n")
cat(length(I2))

I3 <- duplex(d, k = size * 0.4, metric = "euclid")$model
cat("\n")
cat(length(I3))

image

Pay attention to the second one,when the "k" value of function duplex is greater than half,the result is just the same as the first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant