C# Class UserSimulation.Simulation

Afficher le fichier Open project: plasma-umass/DataDebug

Méthodes publiques

Méthode Description
Deserialize ( byte data ) : Simulation
Deserialize ( string file_name ) : Simulation
FormatResultsAsCSV ( ) : String
GetCalculatedError ( ) : double>.System.Collections.Generic.Dictionary
GetEffort ( ) : int
GetExitState ( ) : ErrorCondition
GetFalseNegatives ( ) : HashSet
GetFalsePositives ( ) : List
GetMaxEffort ( ) : int
GetRelativeEffort ( ) : double
GetTotalRelativeError ( ) : double
GetTruePositives ( ) : List
HeaderRowForCSV ( ) : String
RemainingError ( ) : double
Run ( int nboots, string xlfile, double significance, CutoffKind ck, Microsoft.Office.Interop.Excel app, Classification c, Random r, AnalysisType analysisType, bool weighted, bool all_outputs, DAG dag, Microsoft.Office.Interop.Excel wb, AST terminal_formula_cells, AST terminal_input_vectors, string>.System.Collections.Generic.Dictionary original_inputs, string>.System.Collections.Generic.Dictionary correct_outputs, long max_duration_in_ms, String logfile, ProgBar pb ) : int
RunFromBatch ( int nboots, string xlfile, double significance, Microsoft.Office.Interop.Excel app, CutoffKind ck, Classification c, Random r, AnalysisType analysisType, bool weighted, bool all_outputs, DAG dag, Microsoft.Office.Interop.Excel wb, string>.System.Collections.Generic.Dictionary errors, AST terminal_input_vectors, AST terminal_formula_cells, string>.System.Collections.Generic.Dictionary original_inputs, string>.System.Collections.Generic.Dictionary correct_outputs, long max_duration_in_ms, String logfile ) : int
Serialize ( ) : byte[]
Serialize ( string file_name ) : void
ToCSV ( string output_filename ) : void

Creates a CSV file with information about the CheckCell oracle simulation.

ToTimeseriesCSV ( Microsoft.Office.Interop.Excel wb, double current_error, double current_effort ) : void
TopOfKErrors ( AST terminal_formula_nodes, string>.System.Collections.Generic.Dictionary inputs, int k, string>.System.Collections.Generic.Dictionary correct_outputs, Microsoft.Office.Interop.Excel app, Microsoft.Office.Interop.Excel wb, string classification_file, DAG dag ) : Dictionary>

Private Methods

Méthode Description
SimulateUser ( int nboots, double significance, CutoffKind ck, DAG dag, string>.System.Collections.Generic.Dictionary original_inputs, string>.System.Collections.Generic.Dictionary errord, string>.System.Collections.Generic.Dictionary correct_outputs, Microsoft.Office.Interop.Excel wb, Microsoft.Office.Interop.Excel app, AnalysisType analysis_type, bool weighted, bool all_outputs, long max_duration_in_ms, Stopwatch sw, String logfile, ProgBar pb ) : UserResults

Method Details

Deserialize() public static méthode

public static Deserialize ( byte data ) : Simulation
data byte
Résultat Simulation

Deserialize() public static méthode

public static Deserialize ( string file_name ) : Simulation
file_name string
Résultat Simulation

FormatResultsAsCSV() public méthode

public FormatResultsAsCSV ( ) : String
Résultat String

GetCalculatedError() public méthode

public GetCalculatedError ( ) : double>.System.Collections.Generic.Dictionary
Résultat double>.System.Collections.Generic.Dictionary

GetEffort() public méthode

public GetEffort ( ) : int
Résultat int

GetExitState() public méthode

public GetExitState ( ) : ErrorCondition
Résultat ErrorCondition

GetFalseNegatives() public méthode

public GetFalseNegatives ( ) : HashSet
Résultat HashSet

GetFalsePositives() public méthode

public GetFalsePositives ( ) : List
Résultat List

GetMaxEffort() public méthode

public GetMaxEffort ( ) : int
Résultat int

GetRelativeEffort() public méthode

public GetRelativeEffort ( ) : double
Résultat double

GetTotalRelativeError() public méthode

public GetTotalRelativeError ( ) : double
Résultat double

GetTruePositives() public méthode

public GetTruePositives ( ) : List
Résultat List

HeaderRowForCSV() public static méthode

public static HeaderRowForCSV ( ) : String
Résultat String

RemainingError() public méthode

public RemainingError ( ) : double
Résultat double

Run() public méthode

public Run ( int nboots, string xlfile, double significance, CutoffKind ck, Microsoft.Office.Interop.Excel app, Classification c, Random r, AnalysisType analysisType, bool weighted, bool all_outputs, DAG dag, Microsoft.Office.Interop.Excel wb, AST terminal_formula_cells, AST terminal_input_vectors, string>.System.Collections.Generic.Dictionary original_inputs, string>.System.Collections.Generic.Dictionary correct_outputs, long max_duration_in_ms, String logfile, ProgBar pb ) : int
nboots int
xlfile string
significance double
ck CutoffKind
app Microsoft.Office.Interop.Excel
c Classification
r System.Random
analysisType AnalysisType
weighted bool
all_outputs bool
dag DataDebugMethods.DAG
wb Microsoft.Office.Interop.Excel
terminal_formula_cells AST
terminal_input_vectors AST
original_inputs string>.System.Collections.Generic.Dictionary
correct_outputs string>.System.Collections.Generic.Dictionary
max_duration_in_ms long
logfile String
pb DataDebugMethods.ProgBar
Résultat int

RunFromBatch() public méthode

public RunFromBatch ( int nboots, string xlfile, double significance, Microsoft.Office.Interop.Excel app, CutoffKind ck, Classification c, Random r, AnalysisType analysisType, bool weighted, bool all_outputs, DAG dag, Microsoft.Office.Interop.Excel wb, string>.System.Collections.Generic.Dictionary errors, AST terminal_input_vectors, AST terminal_formula_cells, string>.System.Collections.Generic.Dictionary original_inputs, string>.System.Collections.Generic.Dictionary correct_outputs, long max_duration_in_ms, String logfile ) : int
nboots int
xlfile string
significance double
app Microsoft.Office.Interop.Excel
ck CutoffKind
c Classification
r System.Random
analysisType AnalysisType
weighted bool
all_outputs bool
dag DataDebugMethods.DAG
wb Microsoft.Office.Interop.Excel
errors string>.System.Collections.Generic.Dictionary
terminal_input_vectors AST
terminal_formula_cells AST
original_inputs string>.System.Collections.Generic.Dictionary
correct_outputs string>.System.Collections.Generic.Dictionary
max_duration_in_ms long
logfile String
Résultat int

Serialize() public méthode

public Serialize ( ) : byte[]
Résultat byte[]

Serialize() public méthode

public Serialize ( string file_name ) : void
file_name string
Résultat void

ToCSV() public méthode

Creates a CSV file with information about the CheckCell oracle simulation.
public ToCSV ( string output_filename ) : void
output_filename string Path for writing CSV.
Résultat void

ToTimeseriesCSV() public static méthode

public static ToTimeseriesCSV ( Microsoft.Office.Interop.Excel wb, double current_error, double current_effort ) : void
wb Microsoft.Office.Interop.Excel
current_error double
current_effort double
Résultat void

TopOfKErrors() public méthode

public TopOfKErrors ( AST terminal_formula_nodes, string>.System.Collections.Generic.Dictionary inputs, int k, string>.System.Collections.Generic.Dictionary correct_outputs, Microsoft.Office.Interop.Excel app, Microsoft.Office.Interop.Excel wb, string classification_file, DAG dag ) : Dictionary>
terminal_formula_nodes AST
inputs string>.System.Collections.Generic.Dictionary
k int
correct_outputs string>.System.Collections.Generic.Dictionary
app Microsoft.Office.Interop.Excel
wb Microsoft.Office.Interop.Excel
classification_file string
dag DataDebugMethods.DAG
Résultat Dictionary>