compute_roc_curve_teeth: Computes the averaged ROC curve of caricatured teeth.

View source: R/roc_curve_simulation.R

compute_roc_curve_teethR Documentation

Computes the averaged ROC curve of caricatured teeth.

Description

We compute the ROC curve by assessing the overlap of reconstructed vertices and causal vertices. We do this for every tooth in the directory then average the ROC curves. The user must pass in the locations of the directories for the two meshes, and also the vector of transition probabilities for the caricaturization procedure.

Usage

compute_roc_curve_teeth(
  data_dir1,
  data_dir2,
  gamma,
  class_1_probs,
  class_2_probs,
  rate_values,
  directions_per_cone,
  curve_length,
  directions,
  truncated = 0,
  ball_radius = ball_radius,
  ball = TRUE,
  radius = 0,
  two_curves = FALSE,
  mode = "teeth",
  base_shape_dir = base_shape_dir
)

Arguments

data_dir1

(string) : Location of the first class of meshes.

data_dir2

(string) : Location of the second class of meshes.

gamma

(float) : The value at which if a vertex has transition probability greater than \gamma, then the vertex is considered causal.

class_1_probs

(vector/matrix) : The vector/matrix of transition probibilities to propogate the weights for class 1 shapes.

class_2_probs

(vector/matrix) : The vector/matrix of transition probibilities to propogate the weights for class 2 shapes.

rate_values

(vector) : Vector of variable importances for each sub-level set across each direction in a given cone.

directions_per_cone

(int): The number of directions we want generated within each cone.

curve_length

(int) : Number of sub-level sets in each EC computation.

directions

(nx3 matrix): The matrix of directions for which the (S/D) EC curve were computed over.

truncated

(int) : The number of "cuts" to compute TPR/FPR for the ROC curve over. Used to speed up ROC computations.

ball_radius

(float) : The radius of the bounding ball used if we compute the balled EC curve.

ball

(boolean) : Denotes whether or not to compute the EC curves over a ball for uniform measurements

radius

(int) : The number of sub-level sets "before" and "after" the selected sub-level sets we want to include (during reconstruction).

two_curves

(boolean) : Whether or not to compute ROC curves using class specific causal points, or the set of all causal points.

Value

roc_curve (matrix) : The roc curves for both classes of shapes.


lcrawlab/SINATRA documentation built on Sept. 13, 2023, 2 p.m.