C# Класс UserSimulation.Simulation

Показать файл Открыть проект

Открытые методы

Метод Описание
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>

Приватные методы

Метод Описание
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

Описание методов

Deserialize() публичный статический Метод

public static Deserialize ( byte data ) : Simulation
data byte
Результат Simulation

Deserialize() публичный статический Метод

public static Deserialize ( string file_name ) : Simulation
file_name string
Результат Simulation

FormatResultsAsCSV() публичный Метод

public FormatResultsAsCSV ( ) : String
Результат String

GetCalculatedError() публичный Метод

public GetCalculatedError ( ) : double>.System.Collections.Generic.Dictionary
Результат double>.System.Collections.Generic.Dictionary

GetEffort() публичный Метод

public GetEffort ( ) : int
Результат int

GetExitState() публичный Метод

public GetExitState ( ) : ErrorCondition
Результат ErrorCondition

GetFalseNegatives() публичный Метод

public GetFalseNegatives ( ) : HashSet
Результат HashSet

GetFalsePositives() публичный Метод

public GetFalsePositives ( ) : List
Результат List

GetMaxEffort() публичный Метод

public GetMaxEffort ( ) : int
Результат int

GetRelativeEffort() публичный Метод

public GetRelativeEffort ( ) : double
Результат double

GetTotalRelativeError() публичный Метод

public GetTotalRelativeError ( ) : double
Результат double

GetTruePositives() публичный Метод

public GetTruePositives ( ) : List
Результат List

HeaderRowForCSV() публичный статический Метод

public static HeaderRowForCSV ( ) : String
Результат String

RemainingError() публичный Метод

public RemainingError ( ) : double
Результат double

Run() публичный Метод

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
Результат int

RunFromBatch() публичный Метод

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
Результат int

Serialize() публичный Метод

public Serialize ( ) : byte[]
Результат byte[]

Serialize() публичный Метод

public Serialize ( string file_name ) : void
file_name string
Результат void

ToCSV() публичный Метод

Creates a CSV file with information about the CheckCell oracle simulation.
public ToCSV ( string output_filename ) : void
output_filename string Path for writing CSV.
Результат void

ToTimeseriesCSV() публичный статический Метод

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
Результат void

TopOfKErrors() публичный Метод

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
Результат Dictionary>