-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterfaces.ts
40 lines (40 loc) · 876 Bytes
/
interfaces.ts
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
interface ICircleProps extends React.Props<any> {
x: number;
y: number;
changePoint: Function;
pointNumber: number;
}
interface ICirclesProps extends React.Props<any> {
changePoint: Function;
points: Array<[number, number]>;
}
interface ILineProps extends React.Props<any> {
regression: Function;
label: string;
}
interface IRectProps extends React.Props<any> {
x: number;
y: number;
f_x: number;
color: string;
}
interface IRectsProps extends React.Props<any> {
points: Array<[number, number]>;
regression: Function;
color: string;
}
interface IRootState {
points: Array<[number, number]>;
}
interface IPointSquaresProps extends React.Props<any> {
points: Array<[number, number]>;
regression: Function;
changePoint: Function;
color: string;
}
interface IStatistics {
meanX: number;
meanY: number;
squareX: number;
s: number;
}