public Form1() { InitializeComponent(); pc = new PC(true); pc.Update(); pcAnalyzer = new PCAnalyzer(pc, new PCAnalyzerSettings(new CPUAnalyzerSettings(null, new FieldThreshold(CPU.CPUField.CoresPower, 25), new FieldThreshold(CPU.CPUField.PackagePower, 40), new FieldThreshold(CPU.CPUField.PackageTemperature, 60), new FieldThreshold(CPU.CPUField.TotalLoad, 70) ), null, null, null, null)); utils = new ProcessUtilizationCollection(); utils.UpdateProcesses(); Timer1.Start(); }
public void PerformAnalysis(IAnalysisOptions options) { IsSaved = false; switch (options.Algorithm) { case AnalysisAlgorithm.PCA: var pcaResult = new PCAnalyzer((PCAOptions)options).Analyze(); analysisResults[AnalysisAlgorithm.PCA] = pcaResult; PCAPerformed(this, new AnalysisPerformedEventArgs(pcaResult)); break; case AnalysisAlgorithm.KPCA: var kpcaResult = new KPCAnalyzer((KPCAOptions)options).Analyze(); analysisResults[AnalysisAlgorithm.KPCA] = kpcaResult; KPCAPerformed(this, new AnalysisPerformedEventArgs(kpcaResult)); break; } }
public void PerformAnalysis(IAnalysisOptions options) { IsSaved = false; switch (options.Algorithm) { case AnalysisAlgorithm.PCA: var pcaResult = new PCAnalyzer((PCAOptions) options).Analyze(); analysisResults[AnalysisAlgorithm.PCA] = pcaResult; PCAPerformed(this, new AnalysisPerformedEventArgs(pcaResult)); break; case AnalysisAlgorithm.KPCA: var kpcaResult = new KPCAnalyzer((KPCAOptions) options).Analyze(); analysisResults[AnalysisAlgorithm.KPCA] = kpcaResult; KPCAPerformed(this, new AnalysisPerformedEventArgs(kpcaResult)); break; } }
protected void createGameSubmission(CustomGameEntry game) { analyzer = new PCAnalyzer(game, gameSubmissionDone); disableInterface(analyzer); analyzer.analyze(); }