Description Usage Arguments Details Value Note See Also
Predict new, unknown samples using either shape decriptors or semi-landmark configurations.
1 2 3 4 |
project |
path to a project ( |
query |
path(s) to otolith images/ path(s) of folder containing the otolith images/ code.tps file containing the semi-landmark configurations/ p x k matrix or p x k x n array of semi-landmark configuration(s) to be predicted. If none is given, interactive file selector will pop out to prompt user to select images to be searched (Windows only) |
multiview |
logical. Turn on mode of combination of different views for prediction. see details |
type |
type of data to predict |
method |
classification method. see Note |
har |
numeric. optional. By default |
pc |
numeric. optional. By default |
threshold |
numeric. optional. threshold value on
posterior probalility to reject the prediction. see
|
reland |
logical. whether to do automatic re-arrangement of landmark- configuration |
tol |
numeric. max limit of distance (see
|
fix |
numeric. for |
mode |
when |
saveresult |
logical. whether to save the result |
search.plot |
logical. whether to plot the search
results. used only when |
... |
other arguments passed to
|
The functions include the otosearch
algorithm
as a means to guess the semi-landmarks arragement (the four
types of arrangements, see reland
), so that
the user can predict the new, unknown samples even if the
side and the direction of the otoliths are unknown. This
could be turned off using reland = FALSE
to speed up
the prediction if the side and direction of the query is
known, and is already in the same arrangements as the
dataset in project.
Combination of multiple views of otoliths for prediction
can be used by setting multiview = TRUE
. Under
multiview mode, input of multiple project
and
query
can be done by using list. For example, by
setting project = list(medial = project_medial,
anterior = project_anterior)
and query = list(medial
= query_medial, anterior = query_anterior)
. The names of
list between project and query should match. Objects in the
list for project
should be projects created using
saveproj
. Objects in the list for query
should be 3-dimensional array consist of the semi-landmark
configurations(for gpa
/ nef
methods) or
matrix containing the shape indices.
matrix of prediction class and posterior probablity.
Currently the method
supported are limited to
lda
and agglda
only.
Because sliding semi-landmark method is not supported by
otosearch
, thus the project
used
should contain gpa
object from non-sliding GPA
transformation. Sliding will be performed by otopred
instead if gpa
is the preferred method and fix
= NULL
.
Which this function wraps: otosearch
Methods of classifier: lda
,
plsda
, tree
,
agglda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.