public class WeightedPolynomialMixingKernel extends Object implements Kernel, org.springframework.beans.factory.InitializingBean
(\sum w_i * k(x_i, y_i) \div \sum w_i ) ^ l
pow
the power to raise things to
attributeKey
the children of this node form a 'vector'. This is the
attribute that we use to 'index' this vector
mapIndexWeight
the indices (i.e. the value of
child.getValue().get(attributeKey)
and the corresponding
weights. The indices must be integers. The
class must be identical to the class of the child - take care that the
numeric types match.
delegateKernel
the kernel to apply to pairs of children.Constructor and Description |
---|
WeightedPolynomialMixingKernel() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
precompute the scaling factor - we will always divide by this
|
double |
evaluate(Object o1,
Object o2) |
String |
getAttributeKey() |
Kernel |
getDelegateKernel() |
Map<Integer,Double> |
getMapIndexWeight() |
int |
getPow() |
void |
setAttributeKey(String attributeKey) |
void |
setDelegateKernel(Kernel delegateKernel) |
void |
setMapIndexWeight(Map<Integer,Double> mapIndexWeight) |
void |
setPow(int pow) |
public int getPow()
public void setPow(int pow)
public String getAttributeKey()
public void setAttributeKey(String attributeKey)
public Kernel getDelegateKernel()
public void setDelegateKernel(Kernel delegateKernel)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.