calibrationPolynomial | R Documentation |
Not yet.
calibrationPolynomial(P, Mcoords)
P |
Vector of parameters fit by calibrationParameters() on other data. |
Mcoords |
A data frame with measured coordinates in columns x and y. |
Not yet.
A data frame with estimated coordinates in target reference frame.
data("localization_aligned") str(localization_aligned) # let's see if we can convert the touch screen pixels to (centi)meters train <- localization_aligned[c(1:16),] test <- localization_aligned[c(17:24),] # get parameters fit onto the training data: trainTaps <- train[,which(names(train) %in% c('tapx_px', 'tapy_px'))] names(trainTaps) <- c('x','y') trainHand <- train[,which(names(train) %in% c('handx_m', 'handy_m'))] names(trainHand) <- c('x','y') params <- calibrationParameters(trainTaps,trainHand) # get test data ready testTaps <- test[,which(names(train) %in% c('tapx_px', 'tapy_px'))] names(testTaps) <- c('x','y') calibrationPolynomial(params,testTaps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.