public class OrNode extends Node
| Modifier and Type | Class and Description |
|---|---|
static class |
OrNode.OrEntry |
Node.ReverseAndRefinement, Node.RidVisited, Node.RSKey, Node.Similarity, Node.ThreadState| Modifier and Type | Field and Description |
|---|---|
TreeMap<Integer,TreeSet<Node>> |
parents |
andChildren, BEGIN_COMP, currentNodeId, END_COMP, endRequired, frequency, frequencyHasChanged, id, instanceSum, isBlocked, isQueued, isRemoved, isRemovedId, isRemovedIdCounter, level, LINK_NEURON_RELATIONS_OPTIMIZATION, lock, MAX_NODE, MAX_RID, MIN_NODE, minFrequency, neuron, nOffset, nullHypFreq, numberOfNeuronRefs, oldNullHypFreq, orChildren, passive, queueId, reverseAndChildren, RID_COMP, ridRequired, sizeSum, threads, visitedCounteraddActivationAndPropagate, addActivationInternal, addAndChild, addConflict, addOrChild, adjust, clearActivations, clearActivations, compare, compareTo, computeAndParents, computeRefinements, count, getActivations, getAndChild, getFirstActivation, getThreadState, isCovered, isFrequent, isPublic, isRequired, postProcessRemovedActivation, prepareResultsForPredefinedNodes, preProcessAddedActivation, processAddedActivation, processChanges, processRemovedActivation, read, removeActivationAndPropagate, removeActivationInternal, removeAndChild, removeConflict, removeFromNextLevel, removeOrChild, toSimpleString, toString, weightsToStringpublic OrNode()
public OrNode(Document doc)
public void computeNullHyp(Model m)
computeNullHyp in class Nodepublic boolean isExpandable(boolean checkFrequency)
isExpandable in class Nodepublic boolean isAllowedOption(Document doc, InterprNode n, Activation act, long v)
isAllowedOption in class Nodepublic void initActivation(Document doc, Activation act)
initActivation in class Nodepublic void deleteActivation(Document doc, Activation act)
deleteActivation in class Nodepublic void addActivation(Document doc, Integer ridOffset, Activation inputAct)
public void removeActivation(Document doc, Integer ridOffset, Activation inputAct)
public void propagateAddedActivation(Document doc, Activation act, InterprNode removedConflict)
propagateAddedActivation in class Nodepublic void propagateRemovedActivation(Document doc, Activation act)
propagateRemovedActivation in class Nodepublic double computeSynapseWeightSum(Integer offset, Neuron n)
computeSynapseWeightSum in class Nodeprotected boolean hasSupport(Activation act)
hasSupport in class Nodepublic void apply(Document doc, Activation act, InterprNode conflict)
public void discover(Document doc, Activation act)
public static void processCandidate(Document doc, Node parentNode, Activation inputAct, boolean train)
public InterprNode lookupOrOption(Document doc, Range r, boolean create)
protected Set<AndNode.Refinement> collectNodeAndRefinements(AndNode.Refinement newRef)
collectNodeAndRefinements in class Nodeprotected void changeNumberOfNeuronRefs(Document doc, long v, int d)
changeNumberOfNeuronRefs in class Nodepublic void removeAllInputs(Document doc)
public String logicToString()
logicToString in class Nodepublic void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class Nodeout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in, Document doc) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface WritablereadFields in class Nodein - DataInput to deseriablize this object from.IOExceptionCopyright © 2017. All rights reserved.