-
Notifications
You must be signed in to change notification settings - Fork 0
/
Analysis.cs
42 lines (37 loc) · 925 Bytes
/
Analysis.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharp_Analyzer_of_Keystroke_Dynamics
{
class Analysis
{
private readonly List<KeyStroke> _ks;
public Analysis(List<KeyStroke> _ks)
{
this._ks = _ks;
}
public List<TimeSpan> CalculateIntervals()
{
List<TimeSpan> Intervals = new List<TimeSpan>();
for (int i = 0; i < _ks.Count-1; i++)
{
Intervals.Add(_ks[i + 1].Pressed - _ks[i].Released);
}
return Intervals;
}
/* private bool IsCorrect(string input)
{
if (Main.Input_richTextBox)
{
}
}*/
public void Compare() //void?
{
// for (int i = 0; i < length; i++)
{
}
}
}
}