public class DCDObjectiveTerm extends Object implements ReasonerTerm
Constructor and Description |
---|
DCDObjectiveTerm(VariableTermStore<DCDObjectiveTerm,RandomVariableAtom> termStore,
boolean squared,
Hyperplane<RandomVariableAtom> hyperplane,
float weight,
float c) |
Modifier and Type | Method and Description |
---|---|
float |
evaluate(float[] variableValues) |
int |
fixedByteSize()
The number of bytes that writeFixedValues() will need to represent this term.
|
float |
getLagrange() |
void |
minimize(boolean truncateEveryStep,
float[] variableValues) |
void |
read(ByteBuffer fixedBuffer,
ByteBuffer volatileBuffer)
Assume the term that will be next read from the buffers.
|
int |
size() |
String |
toString() |
void |
writeFixedValues(ByteBuffer fixedBuffer)
Write a binary representation of the fixed values of this term to a buffer.
|
public DCDObjectiveTerm(VariableTermStore<DCDObjectiveTerm,RandomVariableAtom> termStore, boolean squared, Hyperplane<RandomVariableAtom> hyperplane, float weight, float c)
public float getLagrange()
public float evaluate(float[] variableValues)
public void minimize(boolean truncateEveryStep, float[] variableValues)
public int size()
size
in interface ReasonerTerm
public int fixedByteSize()
public void writeFixedValues(ByteBuffer fixedBuffer)
public void read(ByteBuffer fixedBuffer, ByteBuffer volatileBuffer)
Copyright © 2020 University of California, Santa Cruz. All rights reserved.