www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,22 @@
|
|||
package org.jcodec.common;
|
||||
|
||||
public class IntIntHistogram extends IntIntMap {
|
||||
private int maxBin = -1;
|
||||
|
||||
public int max() {
|
||||
return this.maxBin;
|
||||
}
|
||||
|
||||
public void increment(int bin) {
|
||||
int count = get(bin);
|
||||
count = (count == Integer.MIN_VALUE) ? 1 : (1 + count);
|
||||
put(bin, count);
|
||||
if (this.maxBin == -1)
|
||||
this.maxBin = bin;
|
||||
int maxCount = get(this.maxBin);
|
||||
if (count > maxCount) {
|
||||
this.maxBin = bin;
|
||||
maxCount = count;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue