-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathWQComputeMinCostTask.java
50 lines (38 loc) · 1.25 KB
/
WQComputeMinCostTask.java
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
48
49
50
package phylonet.coalescent;
import java.util.List;
import phylonet.coalescent.IClusterCollection.VertexPair;
import phylonet.tree.model.Tree;
import phylonet.tree.model.sti.STITreeCluster.Vertex;
public class WQComputeMinCostTask extends AbstractComputeMinCostTask<Tripartition>{
WQDataCollection wqDataCollection;
public WQComputeMinCostTask(AbstractInference<Tripartition> inference, Vertex v,
IClusterCollection clusters) {
super(inference, v, clusters);
this.wqDataCollection = (WQDataCollection)inference.dataCollection;
}
protected double adjustWeight(long clusterLevelCost, Vertex smallV,
Vertex bigv, Long Wdom) {
return Wdom;
}
@Override
protected long scoreBaseCase(boolean rooted, List<Tree> trees) {
return 0l;
}
@Override
protected AbstractComputeMinCostTask<Tripartition> newMinCostTask(
Vertex v, IClusterCollection clusters) {
return new WQComputeMinCostTask(inference, v, clusters);
}
@Override
protected long calculateClusterLevelCost() {
return 0l;
}
@Override
protected Tripartition STB2T(VertexPair vp) {
return new Tripartition(vp.cluster1.getCluster(), vp.cluster2.getCluster(), vp.both.getCluster().complementaryCluster());
}
@Override
Long defaultWeightForFullClusters() {
return 0l;
}
}