| Chunk |
|---|
| Conflicting content |
|---|
double binMax = _bins.lastKey();
if (p < _minimum) {
<<<<<<< HEAD
result = new SumResult |
| Solution content |
|---|
double binMax = _bins.lastKey();
if (p < _minimum) {
result = new SumResult |
| File |
|---|
| Histogram.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Cast expression |
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
countDensity = (lowerResult.getCount() + higherResult.getCount()) / 2;
targetDensity = (T) lowerResult.getTargetSum().clone().sum(higherResult.getTargetSum()).mult(0.5);
} else {
<<<<<<< HEAD
Entry |
| Solution content |
|---|
countDensity = (lowerResult.getCount() + higherResult.getCount()) / 2;
} else {
targetDensity = (T) lowerResult.getTargetSum().clone().sum(higherResult.getTargetSum()).mult(0.5);
} else {
Entry |
| File |
|---|
| Histogram.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
return (U) p.sum(i.clone().mult(iTerm)).sum(i1.clone().mult(i1Term));
}
<<<<<<< HEAD
// s = p + (1/2 + r - r^2/2)*i + r^2/2*i1
// r = (x - m) / (m1 - m)
// s_dx = i - (i1 - i) * (x - m) / (m1 - m)
private Target computeDensity(double r, double m, double m1, U i, U i1) {
return i.clone().sum(i1.clone().sum(i.clone().mult(-1)).mult(r)).mult(1 / (m1 - m));
}
=======
>>>>>>> e39421b8f862fdd8798b9b1687898d4b515ee4df
private double findPointForSum(double s, TreeMap |
| Solution content |
|---|
return (U) p.sum(i.clone().mult(iTerm)).sum(i1.clone().mult(i1Term));
}
// s = p + (1/2 + r - r^2/2)*i + r^2/2*i1
// r = (x - m) / (m1 - m)
// s_dx = i - (i1 - i) * (x - m) / (m1 - m)
private Target computeDensity(double r, double m, double m1, U i, U i1) {
return i.clone().sum(i1.clone().sum(i.clone().mult(-1)).mult(r)).mult(1 / (m1 - m));
}
private double findPointForSum(double s, TreeMap |
| File |
|---|
| Histogram.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
double a = m_i1 - m_i;
double u;
<<<<<<< HEAD
if (a == 0) {
=======
if (a == 0 || m_i == 0 || m_i1 == 0) {
>>>>>>> e39421b8f862fdd8798b9b1687898d4b515ee4df
double offset = d / ((m_i + m_i1) / 2);
u = p_i + (offset * (p_i1 - p_i));
} else { |
| Solution content |
|---|
double a = m_i1 - m_i;
double u;
if (a == 0) {
double offset = d / ((m_i + m_i1) / 2);
u = p_i + (offset * (p_i1 - p_i));
} else { |
| File |
|---|
| Histogram.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| If statement |