microClust {DepecheR} | R Documentation |
This function is the core of the neighSmooth. See the documentation there for details.
microClust( dataCenter, dataNeigh, dataReturn, method = "median", k = 11, trim = 0 )
dataCenter |
The original data. |
dataNeigh |
The data for the neighbors. Often stronly overlapping with the dataCenter, but for internal reasons, this data cloud is larger than the dataCenter cloud. |
dataReturn |
The neighbor data that should be aggregated and sent back. |
method |
Should median or mean be calculated? |
k |
Number of neighbors. |
trim |
If mean of the neighbors is returned, should it be calculated with trimming? |
A dataset with the same shape as dataCenter, filled with aggregated information from the k nearest neighbors.