コード例 #1
0
 public FormProggress(DataGathering.Form1 parentForm, int max)
 {
     InitializeComponent();
     progressBar1.Maximum = max;
     progressBar1.Step = 1;
     form = parentForm;
 }
 void Start()
 {
     filePath   = string.Concat(Application.dataPath, "/data/");
     naos       = GetComponent <DataGathering>();
     eyeData    = GetComponent <ReceiveLiveStream>();
     KerasBrain = GetComponent <Brain>();
     loading    = 0;
 }
コード例 #3
0
 public FormProggress(DataGathering.Form1 parentForm)
 {
     InitializeComponent();
     progressBar1.Maximum = parentForm.m_datFiles.Length;
     progressBar1.Step = 1;
        // timer1.Enabled = true;
     form = parentForm;
 }
    public void Start()
    {
        testTensor = new float[]
        {
            140.285470581055f, 41.11237678527829f, 5.836468505859f, 0.0f,
            0.0f, 0.0f, 2.463f, 0.0f, 64.28699999999999f, 0.7287418126212261f
        };

        naos    = GetComponent <DataGathering>();
        eyeData = GetComponent <ReceiveLiveStream>();
        store   = GetComponent <ExcelStore>();
    }
 // Use this for initialization
 void Start()
 {
     // let's first get access to the other components of this object
     //udpSender = GetComponent<UDPDoubleArrSend> ();
     //triggerSender = GetComponent<UDPSend> ();
     stream = GetComponent <DataGathering> ();
     // This is for the purpose of separating the different subjects you have recorded
     // each time the program is restarted it creates a new folder for the new participant,
     // in this way you know exactly which participant you are working with and the number that has been through.
     while (Directory.Exists("E:/HrTestData/" + participantID))
     {
         participantID += 1;
     }
     Directory.CreateDirectory("E:/HrTestData/" + participantID);
     directoryPath = "E:/HrTestData/" + participantID + "/";
 }
 public void InitializeVariables()
 {
     gdlX       = new List <double>();
     gdlY       = new List <double>();
     gdlZ       = new List <double>();
     gdrX       = new List <double>();
     gdrY       = new List <double>();
     gdrZ       = new List <double>();
     pdl        = new List <double>();
     pdr        = new List <double>();
     HR         = new List <double>();
     GSR        = new List <double>();
     filePath   = string.Concat(Application.dataPath, "/data/");
     naos       = GetComponent <DataGathering>();
     eyeData    = GetComponent <ReceiveLiveStream>();
     KerasBrain = GetComponent <Brain>();
 }
コード例 #7
0
        public string GetResult()
        {
            DataGathering dg = new DataGathering();


            //dg.GenerateResultFile();
            //dg.dependenciesGraph();
            //string allText = System.IO.File.ReadAllText(@"wwwroot//allresults.json");


            string allText = JsonSerializer.Serialize(EvolutionAnalysis.Timeline(), new JsonSerializerOptions()
            {
                WriteIndented = true
            });

            return(allText);
        }