-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAverage_Block.java
More file actions
47 lines (37 loc) · 1.14 KB
/
Average_Block.java
File metadata and controls
47 lines (37 loc) · 1.14 KB
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
import java.util.ArrayList;
public class Average_Block {
private final double[][] Block;
ArrayList<Vector> Blocks_one = new ArrayList<>();
ArrayList<Vector> Blocks_two = new ArrayList<>();
ArrayList<Vector> Final = new ArrayList<>();
private final int [][] High; //High
private final int [][] Low ; //Low
Average_Block(double[][]b,int [][] high,int [][] low){
Block=b;
High=high;
Low=low;
}
public double[][] getBlock() {
return Block;
}
public int[][] getHigh() {
return High;
}
public int[][] getLow() {
return Low;
}
public void setBlocks_one(Vector blocks_one) {
Blocks_one.add(blocks_one);
}
public void setBlocks_two(Vector blocks_two) {
Blocks_two.add(blocks_two);
}
public ArrayList<Vector> getBlocks_one() {
return Blocks_one;
}
public ArrayList<Vector> getBlocks_two() {
return Blocks_two;
}
public void setFinal(Vector blocks_one) { Final.add(blocks_one) ;}
public ArrayList<Vector> getFinal() { return Final; }
}