compute_roc_curve_teeth_vertex: Computes the ROC curve by assessing the overlap of...

View source: R/roc_curve_simulation.R

compute_roc_curve_teeth_vertexR Documentation

Computes the ROC curve by assessing the overlap of reconstructed vertices and causal vertices on the 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_vertex(
  data_dir,
  gamma,
  class_1_probs,
  class_2_probs,
  rate_values,
  directions_per_cone,
  curve_length,
  directions,
  truncated = 0,
  class = 0,
  ball_radius = ball_radius,
  ball = TRUE,
  radius = 0,
  mode = "teeth",
  base_shape_dir
)

Arguments

data_dir

(string) : Location of the 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.

class

(int) : The class of the roc curve. If class = 0, we let the set of causal vertices be the union of causal vertices from class 1 and 2.

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).

Value

total_rate_roc (matrix): The ROC curve.


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