-
Notifications
You must be signed in to change notification settings - Fork 0
/
dataUml.text
49 lines (43 loc) · 938 Bytes
/
dataUml.text
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
43
44
45
46
47
48
49
@startuml
class DataFrame {
- headerNames: String[]
- numOfRows: int
- numOfCols: int
- data: double[][]
+ DataFrame(file: String)
+ getHeaderNames(): String[]
+ getColumnByIndex(index: int): DataSeries
+ getNumOfRows(): int
+ getNumOfCols(): int
+ toString(): String
}
interface IBasicStats {
+ getMin(): double
+ getMax(): double
+ getSum(): double
+ getMean(): double
}
class DataSeries implements IBasicStats {
- label: String
- data: double[]
- count: int
+ DataSeries(label: String)
+ add(value: double): void
+ size(): int
+ getMin(): double
+ getMax(): double
+ getSum(): double
+ getMean(): double
+ toString(): String
}
class DataAnalysisCLI {
- data: DataFrame
- cli: InteractiveCLI
+ DataAnalysisCLI()
+ main(args: String[]): void
+ run(): void
}
DataAnalysisCLI --> DataFrame: uses
DataFrame --> DataSeries: uses
DataAnalysisCLI --> DataSeries: uses
@enduml