mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-13 14:56:29 -04:00
removed some unused code
This commit is contained in:
parent
c9d09e7b84
commit
c86dccdf0d
@ -64,7 +64,7 @@ public class DataSet implements Iterable<DataSample>, Drawable {
|
||||
/**
|
||||
* Deletes all data
|
||||
*/
|
||||
public void clear() {
|
||||
synchronized public void clear() {
|
||||
samples.clear();
|
||||
min = null;
|
||||
max = null;
|
||||
@ -112,27 +112,13 @@ public class DataSet implements Iterable<DataSample>, Drawable {
|
||||
return samples.iterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a sample which contains all the minimum values
|
||||
*/
|
||||
public DataSample getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a sample which contains all the maximum values
|
||||
*/
|
||||
public DataSample getMax() {
|
||||
return max;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the width of the signal with the given index
|
||||
*
|
||||
* @param i the index of the signal
|
||||
* @return max-min
|
||||
*/
|
||||
public long getWidth(int i) {
|
||||
private long getWidth(int i) {
|
||||
return max.getValue(i) - min.getValue(i);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user