Classes | |
| class | AtomLookupProvider |
| class | AtomSpaceWrapper |
| struct | EqOutgoing |
| class | FIMATW |
| class | NormalizingATW |
| class | DirectATW |
| struct | less_dpargs |
| struct | BDRUMUpdater |
| class | BITException |
| Provide rules when expanding the tree. More... | |
| struct | BITNodeFitnessCompare |
| struct | parent_link |
| class | ParametrizedBITNode |
| class | BITNode |
| class | BITNodeRoot |
| class | ExplicitlyEvaluatedBITNode |
| struct | nofilter |
| struct | triviality_filter |
| class | stats |
| class | DeductionLookupTable |
| class | ArityFreeFormula |
| class | Formula |
| class | TautologyFormula |
| class | InversionFormula |
| class | ImplicationBreakdownFormula |
| class | ImplicationConstructionFormula |
| class | NotFormula |
| class | DeductionSimpleFormula |
| class | DeductionGeometryFormula |
| class | RevisionFormula |
| class | Inh2SimFormula |
| class | Sim2InhFormula |
| class | ANDBreakdownFormula |
| class | ModusPonensFormula |
| class | Inh2ImpFormula |
| class | Imp2InhFormula |
| class | Mem2InhFormula |
| class | Mem2EvalFormula |
| class | Eval2InhFormula |
| class | Ext2IntFormula |
| class | Int2ExtFormula |
| class | SymmetricANDFormula |
| class | AsymmetricANDFormula |
| class | OldANDFormula |
| class | ORFormula |
| class | ExcludingORFormula |
| class | NOTFormula |
| class | ORFormula2 |
| class | OldORFormula |
| class | SubsetEvalFormula |
| class | SubsetEvalFormulaTimes |
| class | SubsetEvalFormulaMin |
| class | FORALLFormula |
| class | PredicateTVFormula |
| class | EXISTFormula |
| class | InhSubstFormula |
| class | IndefiniteSymmetricBayesFormula |
| class | IndefiniteSymmetricImplicationBreakdownFormula |
| class | IndefiniteSymmetricDeductionFormula |
| class | IndefiniteSymmetricRevisionFormula |
| class | IndefiniteSymmetricANDFormula |
| class | IndefiniteMem2InhFormula |
| class | IndefiniteInh2MemFormula |
| class | Sampler |
| class | IndefiniteRule |
| class | ConjunctionRule |
| class | ImplicationRule |
| class | RevisionRule |
| class | BayesRule |
| class | AbductionRule |
| class | DeductionRule |
| class | RuleGenerator |
| class | LookupTable |
| class | StrengthCountFormula |
| class | StrengthFormula |
| class | VectorLookupTable |
| class | ForwardChainer |
| struct | iAtomSpaceWrapper |
| struct | atom |
| struct | lessatom |
| struct | lessatom_ignoreVarNameDifferences |
| class | atom_print |
| class | handle_print |
| struct | countAtom |
| class | getNameOp |
| class | handleNoOp |
| class | PostCondition |
| class | NoCondition |
| struct | ModifiedVTree |
| struct | ModifiedBoundVTree |
| class | BoundVTree |
| struct | mapper |
| struct | PLNexception |
| struct | weak_atom |
| struct | TableGather |
| class | Concat |
| class | GetHandle |
| class | DropVertexBindings |
| struct | getOutgoingFun |
| class | AND2ORRule |
| class | ANDBreakdownRule |
| class | ANDPartitionRule |
| class | ANDRule |
| class | ArityFreeANDRule |
| class | SimpleANDRule |
| class | ANDSubstRule |
| class | CrispTheoremRule |
| class | IntensionalInheritanceRule |
| class | LookupRule |
| class | PrintRule |
| class | ScholemFunctionProductionRule |
| class | SubsetEvalRule |
| class | VarInstantiationRule |
| class | Equi2ImpRule |
| class | Eval2MemRule |
| class | Exist2ForAllRule |
| class | Ext2ExtRule |
| class | Inclusion2EvalRule |
| class | Inh2EvalRule |
| class | Inh2SimRule |
| class | Link2LinkRule |
| class | Sim2InhRule |
| class | GenericRule |
| class | ImplicationBreakdownRule |
| class | ImplicationRedundantExpansionRule |
| class | ImplicationTailExpansionRule |
| class | StrictImplicationBreakdownRule |
| (A->B, A) => B. More... | |
| class | HypothesisRule |
| class | InversionRule |
| class | QuantifierRule |
| class | NotEliminationRule |
| class | NotEvaluatorRule |
| class | OR2ANDRule |
| class | ORPartitionRule |
| class | ORRule |
| class | Rule |
| struct | VtreeProvider |
| struct | VtreeProviderWrapper |
| class | RuleApp |
| struct | returnor |
| struct | converter |
| struct | EqRuleName |
| class | GenericRule2 |
| class | InversionRule2 |
| class | RuleProvider |
| class | VariableRuleProvider |
| class | DefaultVariableRuleProvider |
| class | ForwardChainerRuleProvider |
| class | SimSubstRule1 |
| class | SimSubstRule2 |
| class | BaseCrispUnificationRule |
| class | CrispUnificationRule |
| class | CustomCrispUnificationRule |
| class | CustomCrispUnificationRuleComposer |
| class | StrictCrispUnificationRule |
| Requires that all subtrees are separately produced; hence requires HypothesisRule. More... | |
| class | BackwardInferenceTask |
| struct | PLNTest |
| class | TimeStamp |
| class | XMLtag |
| A helper class to contain the data of an XMLNode. More... | |
| class | XMLNode |
| An elementary XML parser. More... | |
| struct | iXMLvalue |
| struct | XMLvalue |
| struct | IntXMLValue |
| struct | StringXMLValue |
| struct | FloatXMLValue |
Namespaces | |
| namespace | simple_evaluator |
Typedefs | |
| typedef unsigned int | pHandle |
| typedef std::vector< pHandle > | pHandleSeq |
| typedef std::pair< Handle, VersionHandle > | vhpair |
| typedef pair< Rule *, vtree > | directProductionArgs |
| typedef std::pair< std::string, atom > | subst |
| typedef std::set< atom, lessatom > | atomset |
| typedef opencog::pln::BoundVertex | atomT |
| typedef std::set< atomT > | atomSetT |
| typedef std::vector< atomT > | atomVectorT |
| typedef Btr< std::vector < Vertex > > | VertexVector |
| typedef Btr< std::set< Vertex > > | VertexSet |
| typedef std::map< pHandle, pHandle > | bindingsT |
| typedef std::map< pHandle, vtree > | bindingsVTreeT |
| typedef Btr< BoundVTree > | BBvtree |
| typedef std::pair< std::string, pHandle > | hsubst |
| typedef weak_atom< Vertex > | BoundVertex |
| typedef std::set< Vertex > | BasicVertexSet |
| typedef std::vector < opencog::pln::BoundVertex > | BV_Vector |
| typedef std::set < opencog::pln::BoundVertex > | BV_Set |
| typedef TableGather::iterator | TableGatherIt |
| typedef TableGather::const_iterator | TableGatherConstIt |
| typedef Ext2ExtRule < EXTENSIONAL_IMPLICATION_LINK, SUBSET_LINK > | ExtImpl2SubsetRule |
| typedef Ext2ExtRule < EXTENSIONAL_EQUIVALENCE_LINK, EXTENSIONAL_SIMILARITY_LINK > | ExtEqui2ExtSimRule |
| typedef Ext2ExtRule < EQUIVALENCE_LINK, SIMILARITY_LINK > | Equi2SimRule |
| typedef Inclusion2EvalRule < MEMBER_LINK > | Mem2EvalRule |
| typedef Inclusion2EvalRule < SUBSET_LINK > | Inh2EvalRule |
| typedef Link2LinkRule < Mem2InhFormula > | Mem2InhRule |
| typedef Link2LinkRule < Int2ExtFormula > | Int2ExtRule |
| typedef Link2LinkRule < Ext2IntFormula > | Ext2IntRule |
| typedef Link2LinkRule < Inh2ImpFormula > | Inh2ImpRule |
| typedef Link2LinkRule < Imp2InhFormula > | Imp2InhRule |
| typedef QuantifierRule < FORALLFormula > | FORALLRule |
| typedef QuantifierRule < EXISTFormula > | ExistRule |
| typedef QuantifierRule < PredicateTVFormula > | PLNPredicateRule |
Enumerations | |
| enum | RULE { PTL_AND, SimpleAND, SimpleAND2, SimpleAND3, SimpleAND4, SimpleAND5, ForAll, PLNPredicate, ORPartition, OR, ANDPartition, NotEvaluation, UnorderedLinkPermutation, ANDBreakdown1, ANDBreakdown2, ANDBreakdown3, ANDBreakdown4, ANDBreakdown5, ORBreakdown, StrictImplicationBreakdown, ImplicationBreakdown, ImplicationConstruction, ImplicationTailExpansion, VariableInstantiation, ScholemFunctionProduction, ChildSubstitution, NOTElimination, Deduction_Implication, Deduction_Inheritance, Inversion_Implication, Inversion_Inheritance, Revision, MetaPredicateExecution, SubSetEval_ConceptNode, Equi2Impl, Equi2Sim, Inh2Imp, Inh2Sim, Inh2Eval, Sim2Inh, Mem2Inh, Mem2Eval, Imp2Inh, IntImp2Ext, IntInh2Ext, ExtImp2Int, ExtInh2Int, ExtImpl2Subset, ExtEqui2ExtSim, CrispTheorem, Lookup, Hypothesis, CrispUnification, StrictCrispUnification, Tautology, OR2AND, Exist2ForAll, Exist } |
Functions | |
| pHandle | CreateConceptASSOC (AtomSpaceWrapper *asw, pHandle c_h) |
| SimpleTruthValue | ASSOC (const TruthValue &tv1, const TruthValue &tv2) |
| AtomSpaceWrapper * | ASW (AtomSpace *a) |
| Handle | singular (HandleSeq hs) |
| vtree | make_vtree (pHandle h) |
| Construct a vtree around Handle h. | |
| void | pr (pair< pHandle, pHandle > i) |
| void | pr3 (pair< pHandle, pHandle > i) |
| template<typename V, typename Vit, typename Tit> | |
| void | copy_vars (V &vars, Vit varsbegin, Tit bbvt_begin, Tit bbvt_end) |
| template<typename T> | |
| bool | equal_indirect (const T &a, const T &b) |
| void * | BetaDistribution (void *arg) |
| static number_t | scaleLU (number_t value, number_t L_, number_t U_) |
| static void | truncate (number_t &value) |
| static void | setSaveDeductionLookupTable (bool b) |
| static void | setUseDeductionLookupTable (bool b) |
| bool | existMPin (const vector< Btr< atom > > &hs) |
| void | prn (tree< Btr< atom > > &tr) |
| Remove the explicit outgoingset (hs) and replace it with a tree structure. | |
| void | expandHandletree (bool fullVirtual, vtree &ret, tree< Vertex >::iterator ret_top) |
| void | makeHandletree (pHandle h, bool fullVirtual, tree< Vertex > &ret) |
| void | addatomcopy (const tree< Btr< atom > > &a, set< atom, lessatom_ignoreVarNameDifferences > &res) |
| void | printAtomTree (const atom &a, int level=0, int LogLevel=5) |
| void | getAtomTreeString (const atom &a, std::string &outbuf) |
| void | VariableMPforms (const atom &src, std::set< atom, lessatom_ignoreVarNameDifferences > &res, std::set< subst > *forbiddenBindings) |
| bool | getLargestIntersection2 (const std::set< atom, lessatom > &keyelem_set, const std::vector< pHandle > &link_set, std::vector< boost::shared_ptr< atom > > &result) |
| atom * | neBoundVertexWithNewType (Handle h, Type T) |
| void | infer (Handle h, int &steps, bool setTarget) |
| Handle | applyRule (const string &ruleName, const HandleSeq &premises) |
| Handle | applyRule (const std::string &ruleName, const HandleSeq &premises) |
| bool | unifiesWithVariableChangeTo (const vtree &lhs_t, const vtree &rhs_t, vtree::sibling_iterator ltop, vtree::sibling_iterator rtop, map< pHandle, pHandle > &bindings) |
| bool | unifiesWithVariableChangeTo (const vtree &lhs_t, const vtree &rhs_t, map< pHandle, pHandle > &bindings) |
| string | make_subst_buf (const BoundVertex &a) |
| bool | equal_vectors (pHandle *lhs, int lhs_arity, pHandle *rhs) |
| bool | within (float a, float b, float diff) |
| void | convertTo (const VertexVector &args, auto_ptr< Handle > &ret) |
| void | convertTo (const vector< Vertex > &args, auto_ptr< Handle > &ret) |
| void | convertTo (const vector< BoundVertex > &args, auto_ptr< Handle > &ret) |
| void | convertTo (const set< BoundVertex > &args, auto_ptr< Handle > &ret) |
| void | convertTo (const VertexSet &args, auto_ptr< Handle > &ret) |
| void | convertTo (const vector< Handle > &args, auto_ptr< Handle > &ret) |
| void | convertTo (const VertexVector &args, Handle *&ret) |
| void | convertTo (const vector< Vertex > &args, Handle *&ret) |
| void | convertTo (const vector< BoundVertex > &args, Handle *&ret) |
| void | convertTo (const vector< BoundVertex > &args, HandleSeq &ret) |
| void | convertTo (const set< BoundVertex > &args, Handle *&ret) |
| void | convertTo (const VertexSet &args, Handle *&ret) |
| void | convertTo (const vector< Handle > &args, Handle *&ret) |
| bool | substitutableTo (atom &from, atom &to, map< string, atom > &bindings, const set< subst > &forbiddenBindings, std::pair< string, atom > **restart_from, std::pair< string, atom > **restart_to) |
| bool | getLargestIntersection (const set< pHandle > &keyelem_set, const set< pHandle > &link_set, pHandle &result) |
| bool | getLargestIntersection2 (const set< atom, lessatom > &keyelem_set, const pHandleSeq &link_set, std::vector< Btr< atom > > &result) |
| string | printNode1 (pHandle h, int level, int LogLevel) |
| std::string | printTree (pHandle h, int level, int LogLevel) |
| string | GetRandomString (int size) |
| bool | _in (set< subst > *forbid, string entry, atom a) |
| string | make_subst_buf (const atom &a) |
| void | getAtomTreeString (const atom &a, string &outbuf) |
| string | printNode1 (const atom &a, int level, int LogLevel) |
| void | printLeveledString (int level, string str) |
| bool | equal (pHandle A, pHandle B) |
| pHandleSet | memberLinkSet (pHandle CP, strength_t min_membershipStrength, count_t min_membershipCount, AtomSpaceWrapper *asw) |
| pHandleSet | constitutedSet (const pHandleSet &memberLinks, AtomSpaceWrapper *asw) |
| pHandleSet | constitutedSet (pHandle CP, strength_t min_membershipStrength, count_t min_membershipCount, AtomSpaceWrapper *asw) |
| FitnessEvaluatorT | getFitnessEvaluator (string name) |
| pHandle | _v2h (const Vertex &v) |
| bool | MPunifyHandle (pHandle lhs, const atom &rhs, bindingsT &bindings, set< hsubst > **forbiddenBindings, bool *restart, const Type VarT) |
| bool | MPunify1 (tree< Vertex > &lhs_t, tree< Vertex >::iterator lhs_ti, const atom &rhs, bindingsT &bindings, set< hsubst > **forbiddenBindings, bool *restart, const Type VarT) |
| bool | MPunifyVector (tree< Vertex > &lhs_t, tree< Vertex >::iterator lhs_top, const vector< Btr< atom > > &rhsv, bindingsT &bindings, set< hsubst > **forbiddenBindings, bool *restart, const Type VarT) |
| bool | isVariableAtom (string name, Type type, int arity) |
| string | condensed_form (const atom &a) |
| template<typename BindKeyT, typename BindKeyOpT, typename BindItT> | |
| bool | ttsubstitutableTo (pHandle from, pHandle to, map< BindKeyT, pHandle > &bindings, BindKeyOpT bind_key_op) |
| void | foo2 () |
| bool | substitutableTo (pHandle from, pHandle to, map< string, pHandle > &bindings) |
| bool | substitutableTo (pHandle from, pHandle to, map< pHandle, pHandle > &bindings) |
| const char * | Type2Name (Type t) |
| pHandle | make_real (vtree &vt) |
| void | recursiveBind (Vertex &v, const map< pHandle, pHandle > &binds) |
| meta | bind_vtree (vtree &targ, const map< pHandle, pHandle > &binds) |
| void | removeRecursionFromHandleHandleMap (bindingsT &ret_bindings) |
| void | removeRecursion (std::vector< Btr< set< BoundVertex > > > &multi_input_vector) |
| bool | equalVariableStructure (const vtree &lhs, const vtree &rhs) |
| bool | equalVariableStructure2 (BBvtree lhs, BBvtree rhs) |
| void | ForceVirtual (meta _target, vtree::iterator &vit) |
| meta | ForceAllLinksVirtual (meta _target) |
| meta | ForceRootLinkVirtual (meta _target) |
| void | print_progress () |
| bool | RealHandle (meta _target, Btr< set< BoundVertex > > result_set) |
| void | bind (BoundVTree &bbvt, hpair new_bind) |
| void | bind_Bvtree (meta arg, const bindingsVTreeT &binds) |
| void | pr2 (std::pair< pHandle, vtree > i) |
| void | print_binding (std::pair< Handle, vtree > i) |
| void | printBinding (const std::pair< string, Handle > p) |
| void | pr (std::pair< pHandle, pHandle > i) |
| void | printSubsts (BoundVertex a, int LogLevel) |
| template<Type TRANSITIVE_LINK_TYPE, typename containerT, typename const_iteratorT> | |
| Vertex | transitive_produce (const containerT &chain, const_iteratorT next_it, Vertex last_result=(Handle) NULL) |
| bool | IsIdenticalHigherConfidenceAtom (pHandle a, pHandle b) |
| bool | unifiesTo (const vtree &lhs_t, const vtree &rhs_t, vtree::sibling_iterator ltop, vtree::sibling_iterator rtop, map< pHandle, vtree > &Lbindings, map< pHandle, vtree > &Rbindings, bool allow_rhs_binding, Type VarType) |
| bool | unifiesTo (const vtree &lhs, const vtree &rhs, map< pHandle, vtree > &Lbindings, map< pHandle, vtree > &Rbindings, bool allow_rhs_binding, Type VarType) |
| FitnessEvaluatorT | getFitnessEvaluator (std::string name) |
| bool | unifiesTo (const vtree &lhs, const vtree &rhs, std::map< pHandle, vtree > &Lbindings, std::map< pHandle, vtree > &Rbindings, bool allow_rhs_binding, Type VarType=FW_VARIABLE_NODE) |
| bool | unifiesWithVariableChangeTo (const vtree &lhs_t, const vtree &rhs_t, std::map< pHandle, pHandle > &bindings) |
| template<typename TransformerT> | |
| Btr< vtree > | tree_transform (vtree &vt_const, TransformerT transformer) |
| template<typename T> | |
| Btr< std::map< Vertex, Vertex > > | toVertexMap (T mbegin, T mend) |
| template<typename T1, typename bindContainerIterT, typename TM> | |
| bool | consistent (TM &b1, TM &b2, bindContainerIterT b1start, bindContainerIterT b1end, bindContainerIterT b2start, bindContainerIterT b2end) |
| template<typename T1, typename T2, typename T3> | |
| void | insert_with_consistency_check (std::map< T1, T2 > &m, T3 rstart, T3 rend) |
| void | insert_with_consistency_check_bindingsVTreeT (std::map< pHandle, vtree > &m, std::map< pHandle, vtree >::iterator rstart, std::map< pHandle, vtree >::iterator rend) |
| bool | getLargestIntersection (const std::set< pHandle > &keyelem_set, const std::set< pHandle > &link_set, pHandle &result) |
| template<typename T> | |
| bool | vectorHas (std::vector< T > box, T key) |
| Handle | satisfyingSet (Handle h) |
| template<typename T> | |
| std::vector< T * > | NewCartesianProduct (std::vector< std::vector< T > > &matrix) |
| bool | MPunifyHandle (pHandle lhs, const atom &rhs, bindingsT &bindings, std::set< hsubst > **forbiddenBindings=NULL, bool *restart=NULL, const Type VarT=FW_VARIABLE_NODE) |
| bool | MPunifyVector (tree< Vertex > &lhs_t, tree< Vertex >::iterator lhs_top, const std::vector< Btr< atom > > &rhsv, bindingsT &bindings, std::set< hsubst > **forbiddenBindings=NULL, bool *restart=NULL, const Type VarT=FW_VARIABLE_NODE) |
| bool | MPunify1 (tree< Vertex > &lhs_t, tree< Vertex >::iterator lhs_ti, const atom &rhs, bindingsT &bindings, std::set< hsubst > **forbiddenBindings=NULL, bool *restart=NULL, const Type VarT=FW_VARIABLE_NODE) |
| void | convertTo (const std::vector< Vertex > &args, std::auto_ptr< Handle > &ret) |
| void | convertTo (const VertexVector &args, std::auto_ptr< Handle > &ret) |
| void | convertTo (const std::vector< BoundVertex > &args, std::auto_ptr< Handle > &ret) |
| void | convertTo (const std::set< BoundVertex > &args, std::auto_ptr< Handle > &ret) |
| void | convertTo (const VertexSet &args, std::auto_ptr< Handle > &ret) |
| void | convertTo (const std::vector< Handle > &args, std::auto_ptr< Handle > &ret) |
| void | convertTo (const std::vector< Vertex > &args, Handle *&ret) |
| void | convertTo (const std::vector< BoundVertex > &args, Handle *&ret) |
| void | convertTo (const std::vector< BoundVertex > &args, HandleSeq &ret) |
| void | convertTo (const std::set< BoundVertex > &args, Handle *&ret) |
| void | convertTo (const std::vector< Handle > &args, Handle *&ret) |
| template<typename T> | |
| bool | deref_equal (T a, T b) |
| Vertex | CreateVar (iAtomSpaceWrapper *atw, std::string varname) |
| VariableNodes not memory-managed. | |
| Vertex | CreateVar (iAtomSpaceWrapper *atw) |
| Btr< std::set< Btr < ModifiedBoundVTree > > > | FindMatchingUniversals (Btr< vtree > target, iAtomSpaceWrapper *table) |
| Btr< ModifiedBoundVTree > | FindMatchingUniversal (meta target, pHandle ForAllLink, iAtomSpaceWrapper *table) |
| meta | bind_vtree (vtree &targ, const std::map< pHandle, pHandle > &binds) |
| void | printBinding (const std::pair< const Handle, Handle > p) |
| template<typename T, typename T2> | |
| T2 | second (const std::pair< T, T2 > &p) |
| template<typename T, typename T2> | |
| T | first (const std::pair< T, T2 > &p) |
| template<typename T, typename T2> | |
| void | removeRecursionFromMap (T mbegin, T mend) |
| template<typename T1, typename T2> | |
| bool | overlap (T1 &abegin, T1 &aend, T2 &b) |
| bool | RealHandle (meta _target, Btr< std::set< BoundVertex > > result_set) |
| template<typename MapIteratorT, typename MapItemT> | |
| void | removeRecursionFromMapSimple (MapIteratorT mbegin, MapIteratorT mend) |
| bool | substitutableTo (pHandle from, pHandle to, std::map< pHandle, pHandle > &bindings) |
| Rule::setOfMPs | makeSingletonSet (Rule::MPs &mp) |
| pHandle | UnorderedCcompute (iAtomSpaceWrapper *destTable, Type linkT, const ArityFreeFormula< TruthValue, TruthValue * > &fN, pHandle *premiseArray, const int n, pHandle CX=PHANDLE_UNDEFINED) |
| BBvtree | bind_vtree (vtree &targ, map< pHandle, vtree > &binds) |
| bool | ExpandEvaluationLinks (vtree &target, iAtomSpaceWrapper *destTable) |
| static const int | NUMBER_OF_RULES (((int) Exist)+1) |
| template<typename VTPContainerT, typename OutIterT> | |
| OutIterT | VtreeProviders_TO_BoundVertices (const VTPContainerT &vtps, OutIterT out) |
| template<typename BVContainerT, typename OutIterT> | |
| OutIterT | BoundVertices_TO_VtreeProviders (const BVContainerT &bvs, OutIterT out) |
| template<typename VContainerT, typename OutIterT> | |
| OutIterT | Vertices_TO_VtreeProviders (const VContainerT &vs, OutIterT out) |
| float | max (float a, float b) |
| Max of two floats. | |
| BBvtree | atomWithNewType (pHandle h, Type T) |
| BBvtree | atomWithNewType (const tree< Vertex > &v, Type T) |
| BBvtree | atomWithNewType (const Vertex &v, Type T) |
| bool | UnprovableType (Type T) |
| haxx:: | |
| template<Type T> | |
| pHandle | Join (pHandle *h, int N, AtomSpaceWrapper &atw) |
| template<Type T, typename ATW> | |
| pHandle | Join (pHandle h1, pHandle h2, ATW &atw) |
| void | insertAllANDCombinations (set< atom, lessatom_ignoreVarNameDifferences > head, vector< atom > tail, set< atom, lessatom_ignoreVarNameDifferences > &AND_combinations) |
| template<typename C> | |
| void | createPermutation (vector< C > seed, set< vector< C > > &result, int index) |
| template<typename C> | |
| set< vector< C > > * | newCreatePermutations (vector< C > seed) |
| Rule::setOfMPs | PartitionRule_o2iMetaExtra (meta outh, bool &overrideInputFilter, Type OutLinkType) |
| template<class InputIterator, class OutputIterator, class UnaryOperation, class UnaryPredicate> | |
| OutputIterator | transform_if (InputIterator first, InputIterator last, OutputIterator result, UnaryOperation op, UnaryPredicate test) |
| Btr< vtree > | convert_all_var2fwvar (vtree vt_const, iAtomSpaceWrapper *table) |
| Btr< ModifiedVTree > | convertToModifiedVTree (pHandle h, Btr< vtree > vt) |
| template<typename T, typename T2> | |
| bool | stlhasi (const T &c, const T2 &k) |
| template<typename T1, typename bindContainerIterT, typename TM> | |
| bool | consistent_bindingsVTreeT (TM &b1, bindContainerIterT b2start, bindContainerIterT b2end) |
| void | insert_with_consistency_check_bindingsVTreeT (map< pHandle, vtree > &m, map< pHandle, vtree >::iterator rstart, map< pHandle, vtree >::iterator rend) |
| Btr< set< Btr < ModifiedBoundVTree > > > | FindMatchingUniversals (meta target, iAtomSpaceWrapper *table) |
| Rule::setOfMPs | makeSingletonSet (Btr< Rule::MPs > mp) |
| BBvtree | atomWithNewType (Handle h, Type T) |
| Handle | AND2ORLink (Handle &andL, Type _ANDLinkType, Type _OR_LINK) |
| Handle | OR2ANDLink (Handle &andL) |
| Handle | AND2ORLink (Handle &andL) |
| Handle | Exist2ForAllLink (Handle &exL) |
| std::pair< Handle, Handle > | Equi2ImpLink (Handle &) |
| template<typename T> | |
| void | delete_op (T *r) |
| void | InitAxiomSet (string premiseFile) |
| void | foo_pretest () |
| void | footest () |
| void | RunPLNTest (Btr< PLNTest > t) |
| void | finger_print_test (vtree &v) |
| void | InitPLNTests () |
| bool | satSetTest () |
| void | RunPLNTestsOnce () |
| void | RunPLNTests () |
| void | MacroRuleTest () |
| void | CleanSpace (string &s) |
| Handle | LoadXMLFile (iAtomSpaceWrapper *table, string fname) |
| Handle | LoadXMLInput (iAtomSpaceWrapper *table, string buf) |
| bool | valid (Type T, HandleSeq &children) |
| TruthValue * | CreateTVfromArguments (const XMLNode &xml) |
| Handle | Add1NodeFromXML (iAtomSpaceWrapper *table, const XMLNode &xml, const set< string > &old_free_names, set< string > &new_free_names, std::map< string, string > &newVarName) |
| Handle | Add1LinkFromXML (iAtomSpaceWrapper *table, const XMLNode &xml, HandleSeq &children) |
| Handle | HandleXMLInputNode (iAtomSpaceWrapper *table, const XMLNode &xml, const set< string > &prev_free_names, std::map< string, string > &returning_names, std::map< string, string > newVarName) |
Variables | |
| const std::string | ASSOC_suffix = "__ASSOC__" |
| static const unsigned int | mapOffset = NOTYPE+1 |
| const bool | USE_GENERATOR_CACHE = false |
| This cache apparently gives a 30% speed up when active. | |
| const bool | DIRECT_RESULTS_SPAWN = true |
| static const float | MIN_CONFIDENCE_FOR_RULE_APPLICATION = 0.00001f |
| const bool | PREVENT_LOOPS = false |
| Btr< set< pHandle > > | ForAll_handles |
| static int | ParametrizedBITNodes = 0 |
| static int | more_count = 0 |
| static int | count111 = 0 |
| float | all_best_fitness = 0.0f |
| static int | _trail_print_more_count = 0 |
| static bool | bigcounter = true |
| const int | MAX_A = 10 |
| const int | MAX_B = MAX_A |
| const int | MAX_C = MAX_A |
| const int | MAX_AB = MAX_A |
| const int | MAX_BC = MAX_A |
| const int | FORMULA_MAX_ARITY = 100 |
| const int | AND_MAX_ARITY = FORMULA_MAX_ARITY |
| const int | OR_MAX_ARITY = FORMULA_MAX_ARITY |
| const int | FORALL_MAX_ARITY = FORMULA_MAX_ARITY |
| const float | TV_MIN = 0.000001f |
| const float | MembershipToExtensionalInheritanceCountDiscountFactor = 1.0f |
| const float | IntensionToExtensionCountDiscountFactor = 1.0f |
| const float | ExtensionToIntensionCountDiscountFactor = 1.0f |
| const float | IndependenceAssumptionDiscount = 1.0f |
| const float | IndependenceAssumptionGeometryDiscount = 1.0f |
| const float | DefaultNodeProbability = 1 / DefaultU |
| gsl_rng * | rng_ = gsl_rng_alloc (gsl_rng_mt19937) |
| const float | IndefiniteMembershipToExtensionalInheritanceCountDiscountFactor = 1.5f |
| static bool | SAVE_DEDUCTION_LOOKUP_TABLE = true |
| static bool | USE_DEDUCTION_LOOKUP_TABLE = false |
| static const int | FWD_CHAIN_MAX_APPS = 100 |
| static const float | FWD_CHAIN_MIN_CONFIDENCE = 0.4f |
| static const float | FWD_CHAIN_PROB_STACK = 0.7f |
| static const float | FWD_CHAIN_PROB_GLOBAL = 0.3f |
| static const int | FWD_CHAIN_MAX_FILL = 50 |
| int | atom_alloc_count = 0 |
| int | inode_alloc_count = 0 |
| const int | MAX_VARIABLE_NUMBER = 5 |
| int | varcount = 0 |
| const float | MIN_CONFIDENCE = 0.0000001f |
| map< int, Type > | counter |
| static long | _ttt = 0 |
| const bool | RuleResultFreshness = true |
| unsigned long | now_interval_len = 50000 |
| const strength_t | MIN_MEMBERS_STRENGTH = 0.000001 |
| const strength_t | MIN_MEMBERS_COUNT = 1 |
| bool | UnificationRuleResultFreshness = true |
| bool | RECORD_TRAILS |
| int | addlinks = 0 |
| int | gethandles = 0 |
| FitnessEvalutorT | FitnessEvaluator |
| map< int, Btr< tree< Vertex > > > | tests |
| set< Btr< PLNTest > > | PLNTests |
| bool | foo42 = false |
| float | temperature = 0.1f |
| float | temperatures [] |
| const int | temperaturesN = 7 |
| std::map< nocase_string, int > | name2type |
| std::map< std::string, Handle > | nodenames |
| int | xml_level = -1 |
| set< string > | declared_vars |
| static int | helper1 = 0 |
| static int | helper2 = 0 |
| static int | helper3 = 0 |
| typedef std::set<atom, lessatom> opencog::pln::atomset |
| typedef std::set<atomT> opencog::pln::atomSetT |
Definition at line 37 of file PLNEvaluator.h.
Definition at line 36 of file PLNEvaluator.h.
| typedef std::vector<atomT> opencog::pln::atomVectorT |
Definition at line 38 of file PLNEvaluator.h.
| typedef std::set<Vertex> opencog::pln::BasicVertexSet |
Definition at line 482 of file PLNUtils.h.
| typedef Btr<BoundVTree> opencog::pln::BBvtree |
Definition at line 298 of file PLNUtils.h.
| typedef std::map<pHandle, pHandle> opencog::pln::bindingsT |
Definition at line 243 of file PLNUtils.h.
| typedef std::map<pHandle, vtree> opencog::pln::bindingsVTreeT |
Definition at line 244 of file PLNUtils.h.
| typedef weak_atom<Vertex> opencog::pln::BoundVertex |
Definition at line 481 of file PLNUtils.h.
| typedef std::set<opencog::pln::BoundVertex> opencog::pln::BV_Set |
Definition at line 484 of file PLNUtils.h.
| typedef std::vector<opencog::pln::BoundVertex> opencog::pln::BV_Vector |
Definition at line 483 of file PLNUtils.h.
| typedef pair<Rule*, vtree> opencog::pln::directProductionArgs |
Definition at line 117 of file BackInferenceTreeNode.cc.
| typedef Ext2ExtRule<EQUIVALENCE_LINK, SIMILARITY_LINK> opencog::pln::Equi2SimRule |
Definition at line 81 of file Ext2ExtRule.h.
Definition at line 82 of file QuantifierRule.h.
Definition at line 122 of file Link2LinkRule.h.
| typedef Ext2ExtRule<EXTENSIONAL_EQUIVALENCE_LINK, EXTENSIONAL_SIMILARITY_LINK> opencog::pln::ExtEqui2ExtSimRule |
Definition at line 80 of file Ext2ExtRule.h.
| typedef Ext2ExtRule<EXTENSIONAL_IMPLICATION_LINK, SUBSET_LINK> opencog::pln::ExtImpl2SubsetRule |
Definition at line 79 of file Ext2ExtRule.h.
Definition at line 81 of file QuantifierRule.h.
| typedef std::pair<std::string, pHandle> opencog::pln::hsubst |
Definition at line 436 of file PLNUtils.h.
Definition at line 124 of file Link2LinkRule.h.
| typedef Inclusion2EvalRule<SUBSET_LINK> opencog::pln::Inh2EvalRule |
Definition at line 102 of file Inclusion2EvalRule.h.
Definition at line 123 of file Link2LinkRule.h.
Definition at line 121 of file Link2LinkRule.h.
Definition at line 101 of file Inclusion2EvalRule.h.
Definition at line 120 of file Link2LinkRule.h.
| typedef unsigned int opencog::pln::pHandle |
Definition at line 43 of file AtomLookupProvider.h.
| typedef std::vector<pHandle> opencog::pln::pHandleSeq |
Definition at line 44 of file AtomLookupProvider.h.
Definition at line 83 of file QuantifierRule.h.
| typedef std::pair<std::string, atom> opencog::pln::subst |
| typedef TableGather::const_iterator opencog::pln::TableGatherConstIt |
Definition at line 504 of file PLNUtils.h.
| typedef TableGather::iterator opencog::pln::TableGatherIt |
Definition at line 503 of file PLNUtils.h.
| typedef Btr< std::set<Vertex> > opencog::pln::VertexSet |
Definition at line 145 of file PLNUtils.h.
| typedef Btr< std::vector<Vertex> > opencog::pln::VertexVector |
Definition at line 144 of file PLNUtils.h.
| typedef std::pair<Handle,VersionHandle> opencog::pln::vhpair |
Definition at line 66 of file AtomSpaceWrapper.h.
| enum opencog::pln::RULE |
Note: enum RULE is currently unused
| bool opencog::pln::_in | ( | set< subst > * | forbid, | |
| string | entry, | |||
| atom | a | |||
| ) |
The implementation for REAL RandomStrings Could be more inclusive...
Definition at line 1120 of file PLNUtils.cc.
References STLhas.

| pHandle opencog::pln::_v2h | ( | const Vertex & | v | ) |
Definition at line 1372 of file PLNUtils.cc.
| Handle opencog::pln::Add1LinkFromXML | ( | iAtomSpaceWrapper * | table, | |
| const XMLNode & | xml, | |||
| HandleSeq & | children | |||
| ) |
Definition at line 249 of file XMLNodeLoader.cc.
References opencog::pln::iAtomSpaceWrapper::addLink(), CreateTVfromArguments(), LOG, opencog::pln::XMLtag::name, name2type, opencog::pln::XMLNode::TagData(), opencog::Handle::UNDEFINED, and valid().

| Handle opencog::pln::Add1NodeFromXML | ( | iAtomSpaceWrapper * | table, | |
| const XMLNode & | xml, | |||
| const set< string > & | old_free_names, | |||
| set< string > & | new_free_names, | |||
| std::map< string, string > & | newVarName | |||
| ) |
Definition at line 178 of file XMLNodeLoader.cc.
References opencog::pln::iAtomSpaceWrapper::addNode(), opencog::pln::XMLtag::arguments, CreateTVfromArguments(), declared_vars, ELEMENT_NODE, GET_ASW, opencog::TruthValue::getConfidence(), opencog::TruthValue::getMean(), GetRandomString(), i2str(), LOG, opencog::pln::XMLtag::name, name2type, nodenames, STLhas, and opencog::pln::XMLNode::TagData().

| void opencog::pln::addatomcopy | ( | const tree< Btr< atom > > & | a, | |
| set< atom, lessatom_ignoreVarNameDifferences > & | res | |||
| ) |

| Handle opencog::pln::applyRule | ( | const std::string & | ruleName, | |
| const HandleSeq & | premises | |||
| ) |
that function apply a PLN inference rule given its name and its premises to produce the conclusion. The set of rules is taken from DefaultVariableRuleProvider. If the name rule does not correspond to any declared rules then the Handle returned is UNDEFINED_HANDLE NOTE: VersionHandle is ignored for now
| rule_name | the name of PLN rule to apply | |
| premises | the list of Handle premises |

| Handle opencog::pln::applyRule | ( | const string & | ruleName, | |
| const HandleSeq & | premises | |||
| ) |
Definition at line 265 of file PLNModule.cc.
References _v2h(), ASW(), opencog::pln::Rule::compute(), opencog::pln::AtomSpaceWrapper::fakeToRealHandle(), opencog::pln::RuleProvider::findRule(), opencog::pln::AtomSpaceWrapper::realToFakeHandles(), and opencog::Handle::UNDEFINED.
| SimpleTruthValue opencog::pln::ASSOC | ( | const TruthValue & | tv1, | |
| const TruthValue & | tv2 | |||
| ) |
| tv1 | TruthValue representing P(F|G) | |
| tv2 | TruthValue representing P(F|NOT G) |
Definition at line 64 of file ASSOC.cc.
References opencog::TruthValue::getMean(), and max().

| AtomSpaceWrapper * opencog::pln::ASW | ( | AtomSpace * | a = NULL |
) |
Singleton instance of AtomSpaceWrapper (following meyer's design pattern)
Definition at line 57 of file AtomSpaceWrapper.cc.
References opencog::pln::NormalizingATW::getInstance(), PetCombo::instance(), and LOG.

| BBvtree opencog::pln::atomWithNewType | ( | const Vertex & | v, | |
| Type | T | |||
| ) |
Definition at line 105 of file RuleFunctions.cc.
References opencog::tree< T, tree_node_allocator >::begin(), GET_ASW, and mva.
| BBvtree opencog::pln::atomWithNewType | ( | pHandle | h, | |
| Type | T | |||
| ) |
| void* opencog::pln::BetaDistribution | ( | void * | arg | ) |
Definition at line 44 of file FormulasIndefinite.cc.
References SPCTools::argv, b(), and rng_.

| void opencog::pln::bind | ( | BoundVTree & | bbvt, | |
| hpair | new_bind | |||
| ) |
Definition at line 2205 of file PLNUtils.cc.
References _v2h(), opencog::tree< T, tree_node_allocator >::begin(), opencog::tree< T, tree_node_allocator >::end(), and v.

| void opencog::pln::bind_Bvtree | ( | meta | arg, | |
| const bindingsVTreeT & | binds | |||
| ) |
Definition at line 48 of file CrispTheoremRule.cc.
References _v2h(), cprintf(), NMP_HANDLE, NMP_TYPE_NAME, and NMPrinter::print().
Definition at line 1926 of file PLNUtils.cc.
References recursiveBind().

| OutIterT opencog::pln::BoundVertices_TO_VtreeProviders | ( | const BVContainerT & | bvs, | |
| OutIterT | out | |||
| ) | [inline] |
Definition at line 108 of file RuleApp.h.
References opencog::pln::weak_atom< ATOM_REPRESENTATION_T >::value.
| void opencog::pln::CleanSpace | ( | string & | s | ) |
| std::string opencog::pln::condensed_form | ( | const atom & | a | ) |
Definition at line 1635 of file PLNUtils.cc.
References GET_ASW, opencog::pln::atom::hs, i2str(), opencog::pln::AtomSpaceWrapper::inheritsType(), opencog::pln::atom::name, and opencog::pln::atom::T.

| bool opencog::pln::consistent | ( | TM & | b1, | |
| TM & | b2, | |||
| bindContainerIterT | b1start, | |||
| bindContainerIterT | b1end, | |||
| bindContainerIterT | b2start, | |||
| bindContainerIterT | b2end | |||
| ) | [inline] |
The same var bound different way. First virtualize them:
Then apply all bindings on both sides to both, to "normalize away" dependencies
Definition at line 372 of file PLNUtils.h.
References _v2h(), b(), make_vtree(), and tree_transform().
| bool opencog::pln::consistent_bindingsVTreeT | ( | TM & | b1, | |
| bindContainerIterT | b2start, | |||
| bindContainerIterT | b2end | |||
| ) | [inline] |
After a StrictCrispU Node has been created here, it contains some newly converted FW_VARs. We have to convert them to FW_VARs to avoid complexities of having to deal with 2 types of vars everywhere. But we must be able to bind those vars later, by spawning a new copy of this Inference Node. But if we do that, then we must be able to connect the FW_VARs with this node. But we cannot simply fix the conversion mapping from VARs to FW_VARs for each ForAllLink, because we want to be able to use the same ForAllLink several times during the same inference chain!
Definition at line 569 of file RuleFunctions.cc.
References b(), make_vtree(), tree_transform(), and v2h.
| pHandleSet opencog::pln::constitutedSet | ( | pHandle | concept, | |
| strength_t | min_membershipStrength, | |||
| count_t | min_membershipCount, | |||
| AtomSpaceWrapper * | asw | |||
| ) |
Return the set of members of a given concept node (or inheriting concept)
| concept | The pHandle of the concept node (or inheriting concept) | |
| min_membershipStrength | The minimum strength of the membership to be taken in consideration | |
| min_membershipCount | The minimum count of the membership | |
| asw | AtomSpaceWrapper where to look for the concept P Note that it is not const because TableGather is not const it must be fixed |
Definition at line 1313 of file PLNUtils.cc.
References constitutedSet(), opencog::pln::AtomSpaceWrapper::isSubType(), memberLinkSet(), and OC_ASSERT.
| pHandleSet opencog::pln::constitutedSet | ( | const pHandleSet & | memberLinks, | |
| AtomSpaceWrapper * | asw | |||
| ) |
Return the set of members of a given memberLink set
| memberLinks | memberLink set | |
| asw | AtomSpaceWrapper where to look for the concept P Note that it is not const because TableGather is not const it must be fixed |
Definition at line 1303 of file PLNUtils.cc.
References opencog::pln::AtomSpaceWrapper::getOutgoing().

| Btr<vtree> opencog::pln::convert_all_var2fwvar | ( | vtree | vt_const, | |
| iAtomSpaceWrapper * | table | |||
| ) |
USE THIS IF YOU WISH TO CONVERT VARIABLE_NODEs to FW_VARIABLE_NODEs!
Definition at line 491 of file RuleFunctions.cc.
References _v2h(), bind(), CreateVar(), opencog::for_each(), GET_ASW, getTypeVFun, NMP_HANDLE, NMP_TYPE_NAME, printTree(), rawPrint(), and v2h.

| void opencog::pln::convertTo | ( | const std::set< BoundVertex > & | args, | |
| Handle *& | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const std::vector< BoundVertex > & | args, | |
| HandleSeq & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const std::vector< BoundVertex > & | args, | |
| Handle *& | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const std::vector< Vertex > & | args, | |
| Handle *& | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const VertexSet & | args, | |
| std::auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const std::set< BoundVertex > & | args, | |
| std::auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const std::vector< BoundVertex > & | args, | |
| std::auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const VertexVector & | args, | |
| std::auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const std::vector< Vertex > & | args, | |
| std::auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const VertexSet & | args, | |
| Handle *& | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const set< BoundVertex > & | args, | |
| Handle *& | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const vector< BoundVertex > & | args, | |
| HandleSeq & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const vector< BoundVertex > & | args, | |
| Handle *& | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const vector< Vertex > & | args, | |
| Handle *& | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const VertexVector & | args, | |
| Handle *& | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const VertexSet & | args, | |
| auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const set< BoundVertex > & | args, | |
| auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const vector< BoundVertex > & | args, | |
| auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const vector< Vertex > & | args, | |
| auto_ptr< Handle > & | ret | |||
| ) |
| void opencog::pln::convertTo | ( | const VertexVector & | args, | |
| auto_ptr< Handle > & | ret | |||
| ) |
| Btr<ModifiedVTree> opencog::pln::convertToModifiedVTree | ( | pHandle | h, | |
| Btr< vtree > | vt | |||
| ) |
| void opencog::pln::copy_vars | ( | V & | vars, | |
| Vit | varsbegin, | |||
| Tit | bbvt_begin, | |||
| Tit | bbvt_end | |||
| ) | [inline] |
Definition at line 167 of file BackInferenceTreeNode.cc.
References _v2h(), bind(), opencog::copy_if(), getTypeFun, and opencog::inserter().

| pHandle opencog::pln::CreateConceptASSOC | ( | AtomSpaceWrapper * | asw, | |
| pHandle | c_h | |||
| ) |
CreateConceptASSOC is in charge of creating the concept AC such that AC(x) = ASSOC(x, C).
where ASSOC(F, G) = max(P(F|G) − P(F|NOT G), 0)
Here P(F|G) will be measured by SubSet G F
This procedure is used by Intensional Inheritance.
It operates on an AtomSpaceWrapper. If it turns out that creating ASSOC is useful by other modules than PLN the code can be moved to operate over AtomSpace directly.
| asw | the AtomSpaceWrapper over which the creating takes place | |
| c_h | the pHandle of the concept, must be of type or subtype CONCEPT |
Definition at line 28 of file ASSOC.cc.
References opencog::pln::AtomSpaceWrapper::addLink(), opencog::pln::AtomSpaceWrapper::addNode(), ASSOC(), ASSOC_suffix, opencog::TruthValue::DEFAULT_TV(), opencog::pln::AtomSpaceWrapper::getHandle(), opencog::pln::AtomSpaceWrapper::getName(), opencog::pln::AtomSpaceWrapper::getOutgoing(), opencog::pln::AtomSpaceWrapper::getTV(), opencog::pln::AtomSpaceWrapper::isSubType(), OC_ASSERT, and PHANDLE_UNDEFINED.

| void opencog::pln::createPermutation | ( | vector< C > | seed, | |
| set< vector< C > > & | result, | |||
| int | index | |||
| ) | [inline] |
Definition at line 222 of file RuleFunctions.cc.
| TruthValue* opencog::pln::CreateTVfromArguments | ( | const XMLNode & | xml | ) |
Definition at line 166 of file XMLNodeLoader.cc.
References opencog::pln::XMLtag::arguments, opencog::SimpleTruthValue::confidenceToCount(), STLhas, and opencog::pln::XMLNode::TagData().

| Vertex opencog::pln::CreateVar | ( | iAtomSpaceWrapper * | atw | ) | [related] |
| Vertex opencog::pln::CreateVar | ( | iAtomSpaceWrapper * | atw, | |
| std::string | varname | |||
| ) | [related] |
VariableNodes not memory-managed.
Definition at line 64 of file RuleFunctions.cc.
References opencog::pln::iAtomSpaceWrapper::addNode(), cprintf(), opencog::TruthValue::TRIVIAL_TV(), and varcount.

| void opencog::pln::delete_op | ( | T * | r | ) | [inline] |
Definition at line 39 of file RuleProvider.cc.
| bool opencog::pln::deref_equal | ( | T | a, | |
| T | b | |||
| ) | [inline] |
Definition at line 656 of file PLNUtils.h.
| bool opencog::pln::equal | ( | pHandle | A, | |
| pHandle | B | |||
| ) |
| bool opencog::pln::equal_indirect | ( | const T & | a, | |
| const T & | b | |||
| ) | [inline] |
Definition at line 519 of file BackInferenceTreeNode.cc.
| bool opencog::pln::equal_vectors | ( | pHandle * | lhs, | |
| int | lhs_arity, | |||
| pHandle * | rhs | |||
| ) |
Definition at line 282 of file PLNUtils.cc.
Definition at line 2083 of file PLNUtils.cc.
References opencog::tree< T, tree_node_allocator >::begin(), opencog::tree< T, tree_node_allocator >::end(), GET_ASW, opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::AtomSpaceWrapper::inheritsType(), and opencog::tree< T, tree_node_allocator >::size().

| bool opencog::pln::equalVariableStructure2 | ( | BBvtree | lhs, | |
| BBvtree | rhs | |||
| ) |
Definition at line 2121 of file PLNUtils.cc.
| bool opencog::pln::existMPin | ( | const vector< Btr< atom > > & | hs | ) |
Definition at line 876 of file PLNUtils.cc.
References GET_ASW, opencog::pln::AtomSpaceWrapper::inheritsType(), and RESTRICTOR.

| bool opencog::pln::ExpandEvaluationLinks | ( | vtree & | target, | |
| iAtomSpaceWrapper * | destTable | |||
| ) |
Definition at line 35 of file LookupRule.cc.
References _v2h(), opencog::pln::iAtomSpaceWrapper::addNode(), opencog::tree< T, tree_node_allocator >::begin(), opencog::tree< T, tree_node_allocator >::end(), GET_ASW, opencog::getElapsedMillis(), opencog::pln::AtomSpaceWrapper::getName(), opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::AtomSpaceWrapper::inheritsType(), max(), now_interval_len, opencog::tree< T, tree_node_allocator >::replace(), and opencog::TruthValue::TRUE_TV().

| void opencog::pln::expandHandletree | ( | bool | fullVirtual, | |
| vtree & | ret, | |||
| tree< Vertex >::iterator | ret_top | |||
| ) |
If virtual link, then we keep expanding
Definition at line 600 of file PLNatom.cc.
References opencog::tree< T, tree_node_allocator >::append_child(), GET_ASW, and opencog::pln::atom::T.

| Btr< ModifiedBoundVTree > opencog::pln::FindMatchingUniversal | ( | meta | target, | |
| pHandle | ForAllLink, | |||
| iAtomSpaceWrapper * | table | |||
| ) |
bindsInTarget will later become constraints/pre-bindings of the new BIN. UPDATE: THIS FEATURE WAS CANCELCED: BoundUniversal->bindings = bindsInTarget;
Remove FW_VAR => FW_VAR mappings. WARNING! Potentially goes to infinite loop.
Now: I changed the unifiesTo function so that lhs/rhs binding distinction was blurred.
Definition at line 613 of file RuleFunctions.cc.
References convert_all_var2fwvar(), convertToModifiedVTree(), cprintf(), opencog::for_each(), insert_with_consistency_check_bindingsVTreeT(), make_vtree(), NMP_HANDLE, NMP_TYPE_NAME, pr2(), NMPrinter::print(), STLhas, unifiesTo(), v, and v2h.

| Btr< set<Btr<ModifiedBoundVTree> > > opencog::pln::FindMatchingUniversals | ( | meta | target, | |
| iAtomSpaceWrapper * | table | |||
| ) |
Definition at line 700 of file RuleFunctions.cc.
References DeclareBtr, FindMatchingUniversal(), ForAll_handles, and opencog::pln::AtomLookupProvider::getHandleSet().
| Btr< std::set<Btr<ModifiedBoundVTree> > > opencog::pln::FindMatchingUniversals | ( | Btr< vtree > | target, | |
| iAtomSpaceWrapper * | table | |||
| ) |

| void opencog::pln::finger_print_test | ( | vtree & | v | ) |
| T opencog::pln::first | ( | const std::pair< T, T2 > & | p | ) | [inline] |
| void opencog::pln::foo2 | ( | ) |
Whether one can produce 'to' from 'from' by some variable substitutions.
Definition at line 1861 of file PLNUtils.cc.
Definition at line 2151 of file PLNUtils.cc.
References ForceVirtual().

Definition at line 2164 of file PLNUtils.cc.
References cprintf(), GET_ASW, opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::AtomSpaceWrapper::isType(), and make_vtree().
| void opencog::pln::ForceVirtual | ( | meta | _target, | |
| vtree::iterator & | vit | |||
| ) |
Definition at line 2128 of file PLNUtils.cc.
References opencog::tree< T, tree_node_allocator >::iterator_base::begin(), opencog::tree< T, tree_node_allocator >::begin(), cprintf(), GET_ASW, opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::AtomSpaceWrapper::inheritsType(), opencog::pln::AtomSpaceWrapper::isType(), and make_vtree().

| void opencog::pln::getAtomTreeString | ( | const atom & | a, | |
| string & | outbuf | |||
| ) |
Definition at line 1148 of file PLNUtils.cc.
References getAtomTreeString(), opencog::pln::atom::hs, make_subst_buf(), opencog::pln::atom::name, opencog::pln::atom::T, and Type2Name().
| void opencog::pln::getAtomTreeString | ( | const atom & | a, | |
| std::string & | outbuf | |||
| ) |

| FitnessEvaluatorT opencog::pln::getFitnessEvaluator | ( | std::string | name | ) |

| FitnessEvaluatorT opencog::pln::getFitnessEvaluator | ( | string | name | ) |
Definition at line 1360 of file PLNUtils.cc.
References BEST, PLN_FITNESS_BEST, PLN_FITNESS_RANDOM, and PLN_FITNESS_SOFTMAX.

| bool opencog::pln::getLargestIntersection | ( | const std::set< pHandle > & | keyelem_set, | |
| const std::set< pHandle > & | link_set, | |||
| pHandle & | result | |||
| ) |
| bool opencog::pln::getLargestIntersection | ( | const set< pHandle > & | keyelem_set, | |
| const set< pHandle > & | link_set, | |||
| pHandle & | result | |||
| ) |
Definition at line 894 of file PLNUtils.cc.
References GET_ASW, opencog::pln::AtomSpaceWrapper::getArity(), opencog::pln::AtomSpaceWrapper::getOutgoing(), LOG, and PHANDLE_UNDEFINED.

| bool opencog::pln::getLargestIntersection2 | ( | const set< atom, lessatom > & | keyelem_set, | |
| const pHandleSeq & | link_set, | |||
| std::vector< Btr< atom > > & | result | |||
| ) |
Definition at line 926 of file PLNUtils.cc.
References GET_ASW, and opencog::pln::AtomSpaceWrapper::isType().
| bool opencog::pln::getLargestIntersection2 | ( | const std::set< atom, lessatom > & | keyelem_set, | |
| const std::vector< pHandle > & | link_set, | |||
| std::vector< boost::shared_ptr< atom > > & | result | |||
| ) |

| std::string opencog::pln::GetRandomString | ( | int | size | ) |
Definition at line 1039 of file PLNUtils.cc.
References cprintf().

| Handle opencog::pln::HandleXMLInputNode | ( | iAtomSpaceWrapper * | table, | |
| const XMLNode & | xml, | |||
| const set< string > & | prev_free_names, | |||
| std::map< string, string > & | returning_names, | |||
| std::map< string, string > | newVarName | |||
| ) |
A special treatment is given to Listed ForAlls. Others, just add to da std::vector.
The next level's names will be forgotten, unless next level was ListLink.
Definition at line 286 of file XMLNodeLoader.cc.
References Add1LinkFromXML(), Add1NodeFromXML(), GET_ASW, helper1, helper2, helper3, LOG, opencog::pln::XMLtag::name, opencog::pln::XMLNode::Sub(), opencog::pln::XMLNode::TagData(), xml_level, and XMLITERATE.

| void opencog::pln::infer | ( | Handle | h, | |
| int & | steps, | |||
| bool | setTarget | |||
| ) |
Does steps inference steps on target h. Optionally sets the target used in the PLN cogserver commands. Intended for use by the pln-bc Scheme command; this is currently set up for practical use rather than testing use, and as such will not stop at the first result it finds.
| h | The handle to do inference on (a normal handle, not a PLN handle) | |
| steps | Takes the maximum number of steps allowed, and stores the number of steps performed | |
| setTarget | If true, the BIT created here will be/replace the one used with the 'pln' cogserver command. |
Definition at line 220 of file PLNModule.cc.
References ASW(), opencog::config(), SPCTools::f, ForceAllLinksVirtual(), opencog::Config::get_bool(), getFitnessEvaluator(), opencog::pln::BITNodeRoot::infer(), PLN_FITNESS_BEST, opencog::pln::BITNode::printResults(), and opencog::pln::AtomSpaceWrapper::realToFakeHandle().

| void opencog::pln::InitAxiomSet | ( | string | premiseFile | ) |
Definition at line 740 of file Tester.cc.
References haxx::AllowFW_VARIABLENODESinCore, haxx::ArchiveTheorems, cprintf(), GET_ASW, opencog::pln::AtomSpaceWrapper::loadAxioms(), and opencog::pln::AtomSpaceWrapper::reset().

| void opencog::pln::InitPLNTests | ( | ) |
Definition at line 172 of file Tester.cc.
References haxx::ArchiveTheorems, currentDebugLevel, test::logfile, and haxx::printRealAtoms.

| void opencog::pln::insert_with_consistency_check | ( | std::map< T1, T2 > & | m, | |
| T3 | rstart, | |||
| T3 | rend | |||
| ) | [inline] |
haxx::
Definition at line 413 of file PLNUtils.h.
References toVertexMap().

| void opencog::pln::insert_with_consistency_check_bindingsVTreeT | ( | map< pHandle, vtree > & | m, | |
| map< pHandle, vtree >::iterator | rstart, | |||
| map< pHandle, vtree >::iterator | rend | |||
| ) |
Definition at line 603 of file RuleFunctions.cc.
| void opencog::pln::insert_with_consistency_check_bindingsVTreeT | ( | std::map< pHandle, vtree > & | m, | |
| std::map< pHandle, vtree >::iterator | rstart, | |||
| std::map< pHandle, vtree >::iterator | rend | |||
| ) |

| void opencog::pln::insertAllANDCombinations | ( | set< atom, lessatom_ignoreVarNameDifferences > | head, | |
| vector< atom > | tail, | |||
| set< atom, lessatom_ignoreVarNameDifferences > & | AND_combinations | |||
| ) |
Combinations without natom
Combinations with natom
Definition at line 183 of file RuleFunctions.cc.
References opencog::pln::atom::hs.
| bool opencog::pln::IsIdenticalHigherConfidenceAtom | ( | pHandle | a, | |
| pHandle | b | |||
| ) |
Definition at line 2299 of file PLNUtils.cc.
References SPCTools::f, GET_ASW, opencog::TruthValue::getConfidence(), opencog::pln::AtomSpaceWrapper::getTV(), and make_vtree().

| bool opencog::pln::isVariableAtom | ( | string | name, | |
| Type | type, | |||
| int | arity | |||
| ) | [inline] |
Check if the atom with the given properties is a template variable. There are 3 types of variables: 1) FWVariableNodes => anything 2) Any type of node with no name => any node of that type 3) Any type of link with no arity => any link of that type
Definition at line 1627 of file PLNUtils.cc.
References GET_ASW, and opencog::pln::AtomSpaceWrapper::inheritsType().

| pHandle opencog::pln::Join | ( | pHandle | h1, | |
| pHandle | h2, | |||
| ATW & | atw | |||
| ) | [inline] |
Definition at line 177 of file RuleFunctions.cc.
| pHandle opencog::pln::Join | ( | pHandle * | h, | |
| int | N, | |||
| AtomSpaceWrapper & | atw | |||
| ) | [inline] |
Definition at line 167 of file RuleFunctions.cc.
References opencog::pln::AtomSpaceWrapper::addLink(), and opencog::TruthValue::TRUE_TV().
| Handle opencog::pln::LoadXMLFile | ( | iAtomSpaceWrapper * | table, | |
| string | fname | |||
| ) |
Definition at line 45 of file XMLNodeLoader.cc.
References cprintf(), opencog::LoadTextFile(), LoadXMLInput(), nodenames, opencog::pln::CrispTheoremRule::thms, and xml_level.
| Handle opencog::pln::LoadXMLInput | ( | iAtomSpaceWrapper * | table, | |
| string | buf | |||
| ) |
Definition at line 60 of file XMLNodeLoader.cc.
References __AND, __NOT, __OR, opencog::classserver(), ELEMENT_NODE, HandleXMLInputNode(), HAS_R, IN_R, INSTANCEOF_R, L, LOG, opencog::pln::XMLNode::ok, and RESTRICTOR.

| void opencog::pln::MacroRuleTest | ( | ) |
Definition at line 267 of file Tester.cc.
References opencog::pln::AtomSpaceWrapper::addAtom(), opencog::pln::AtomSpaceWrapper::addNode(), opencog::pln::RuleApp::Bind(), opencog::pln::RuleApp::compute(), haxx::defaultAtomSpaceWrapper, SPCTools::f, GET_ASW, opencog::TruthValue::getConfidence(), getCount(), opencog::TruthValue::getMean(), opencog::pln::AtomSpaceWrapper::getTV(), mva, top(), v2h, opencog::pln::weak_atom< ATOM_REPRESENTATION_T >::value, and within().
Definition at line 1905 of file PLNUtils.cc.
References opencog::pln::AtomSpaceWrapper::addAtom(), ASW(), and opencog::TruthValue::TRIVIAL_TV().

| string opencog::pln::make_subst_buf | ( | const atom & | a | ) |
Definition at line 1125 of file PLNUtils.cc.
References _in(), opencog::pln::atom::bindings, condensed_form(), and opencog::pln::atom::forbiddenBindings.
| string opencog::pln::make_subst_buf | ( | const BoundVertex & | a | ) |
Definition at line 2262 of file PLNUtils.cc.
References opencog::pln::weak_atom< ATOM_REPRESENTATION_T >::bindings, condensed_form(), GET_ASW, and opencog::pln::AtomSpaceWrapper::getName().

| vtree opencog::pln::make_vtree | ( | pHandle | h | ) |
Construct a vtree around Handle h.
Definition at line 1937 of file PLNUtils.cc.
References opencog::tree< T, tree_node_allocator >::begin(), makeHandletree(), printTree(), and rawPrint().

| void opencog::pln::makeHandletree | ( | pHandle | h, | |
| bool | fullVirtual, | |||
| tree< Vertex > & | ret | |||
| ) |
Definition at line 594 of file PLNatom.cc.
References opencog::tree< T, tree_node_allocator >::begin(), expandHandletree(), and opencog::tree< T, tree_node_allocator >::set_head().

| Rule::setOfMPs opencog::pln::makeSingletonSet | ( | Btr< Rule::MPs > | mp | ) |
| Rule::setOfMPs opencog::pln::makeSingletonSet | ( | Rule::MPs & | mp | ) |
| float opencog::pln::max | ( | float | a, | |
| float | b | |||
| ) |
Max of two floats.
Definition at line 59 of file RuleFunctions.cc.

| pHandleSet opencog::pln::memberLinkSet | ( | pHandle | concept, | |
| strength_t | min_membershipStrength, | |||
| count_t | min_membershipCount, | |||
| AtomSpaceWrapper * | asw | |||
| ) |
Return the set of membership links of a given concept node (or inheriting concept)
| concept | The pHandle of the concept node (or inheriting concept) | |
| min_membershipStrength | The minimum strength of the membership to be taken in consideration | |
| min_membershipCount | The minimum count of the membership | |
| asw | AtomSpaceWrapper where to look for the concept Note that it is not const because TableGather is not const it must be fixed |
Definition at line 1273 of file PLNUtils.cc.
References equal(), opencog::TruthValue::getCount(), opencog::TruthValue::getMean(), opencog::pln::AtomSpaceWrapper::getOutgoing(), opencog::pln::AtomSpaceWrapper::getTV(), opencog::pln::AtomSpaceWrapper::isSubType(), OC_ASSERT, and tr.

| bool opencog::pln::MPunify1 | ( | tree< Vertex > & | lhs_t, | |
| tree< Vertex >::iterator | lhs_ti, | |||
| const atom & | rhs, | |||
| bindingsT & | bindings, | |||
| std::set< hsubst > ** | forbiddenBindings = NULL, |
|||
| bool * | restart = NULL, |
|||
| const Type | VarT = FW_VARIABLE_NODE | |||
| ) |
| bool opencog::pln::MPunify1 | ( | tree< Vertex > & | lhs_t, | |
| tree< Vertex >::iterator | lhs_ti, | |||
| const atom & | rhs, | |||
| bindingsT & | bindings, | |||
| set< hsubst > ** | forbiddenBindings, | |||
| bool * | restart, | |||
| const Type | VarT | |||
| ) |
Definition at line 1481 of file PLNUtils.cc.
References ASW(), opencog::pln::atom::attach(), cprintf(), equal_atom_ignoreVarNameDifferences, GET_ASW, opencog::pln::AtomSpaceWrapper::getName(), opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::atom::hs, opencog::pln::AtomSpaceWrapper::inheritsType(), opencog::pln::AtomSpaceWrapper::isType(), LOG, MPunifyHandle(), MPunifyVector(), opencog::pln::atom::name, PHANDLE_UNDEFINED, printTree(), STLhas, and opencog::pln::atom::T.

| bool opencog::pln::MPunifyHandle | ( | pHandle | lhs, | |
| const atom & | rhs, | |||
| bindingsT & | bindings, | |||
| std::set< hsubst > ** | forbiddenBindings = NULL, |
|||
| bool * | restart = NULL, |
|||
| const Type | VarT = FW_VARIABLE_NODE | |||
| ) |
| bool opencog::pln::MPunifyHandle | ( | pHandle | lhs, | |
| const atom & | rhs, | |||
| bindingsT & | bindings, | |||
| set< hsubst > ** | forbiddenBindings, | |||
| bool * | restart, | |||
| const Type | VarT | |||
| ) |
Definition at line 1382 of file PLNUtils.cc.
References ASW(), opencog::pln::atom::attach(), cprintf(), equal_atom_ignoreVarNameDifferences, GET_ASW, opencog::pln::AtomSpaceWrapper::getArity(), opencog::pln::AtomSpaceWrapper::getName(), opencog::pln::AtomSpaceWrapper::getOutgoing(), opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::atom::hs, opencog::pln::AtomSpaceWrapper::inheritsType(), opencog::pln::AtomSpaceWrapper::isType(), LOG, opencog::pln::atom::name, PHANDLE_UNDEFINED, STLhas, and opencog::pln::atom::T.

| bool opencog::pln::MPunifyVector | ( | tree< Vertex > & | lhs_t, | |
| tree< Vertex >::iterator | lhs_top, | |||
| const std::vector< Btr< atom > > & | rhsv, | |||
| bindingsT & | bindings, | |||
| std::set< hsubst > ** | forbiddenBindings = NULL, |
|||
| bool * | restart = NULL, |
|||
| const Type | VarT = FW_VARIABLE_NODE | |||
| ) |
| bool opencog::pln::MPunifyVector | ( | tree< Vertex > & | lhs_t, | |
| tree< Vertex >::iterator | lhs_top, | |||
| const vector< Btr< atom > > & | rhsv, | |||
| bindingsT & | bindings, | |||
| set< hsubst > ** | forbiddenBindings, | |||
| bool * | restart, | |||
| const Type | VarT | |||
| ) |
Definition at line 1578 of file PLNUtils.cc.
References opencog::tree< T, tree_node_allocator >::begin(), cprintf(), opencog::tree< T, tree_node_allocator >::end(), LOG, MPunify1(), and opencog::tree< T, tree_node_allocator >::number_of_children().


| std::vector<T*> opencog::pln::NewCartesianProduct | ( | std::vector< std::vector< T > > & | matrix | ) | [inline] |
| set<vector<C> >* opencog::pln::newCreatePermutations | ( | vector< C > | seed | ) | [inline] |
Definition at line 243 of file RuleFunctions.cc.
| static const int opencog::pln::NUMBER_OF_RULES | ( | ((int) Exist)+ | 1 | ) | [static] |
Total number of rules in PLN (Not necessarily the number that are active though).
| bool opencog::pln::overlap | ( | T1 & | abegin, | |
| T1 & | aend, | |||
| T2 & | b | |||
| ) | [inline] |
| Rule::setOfMPs opencog::pln::PartitionRule_o2iMetaExtra | ( | meta | outh, | |
| bool & | overrideInputFilter, | |||
| Type | OutLinkType | |||
| ) |
Definition at line 277 of file RuleFunctions.cc.
References _v2h(), opencog::tree< T, tree_node_allocator >::append_child(), opencog::tree< T, tree_node_allocator >::begin(), opencog::tree< T, tree_node_allocator >::end(), GET_ASW, makeSingletonSet(), MAX_ARITY_FOR_PERMUTATION, mva, and visualise_importance_diffusion::N.

| void opencog::pln::pr | ( | std::pair< pHandle, pHandle > | i | ) |
Definition at line 2245 of file PLNUtils.cc.
References GET_ASW, opencog::pln::AtomSpaceWrapper::getName(), opencog::pln::AtomSpaceWrapper::getType(), i2str(), and opencog::pln::AtomSpaceWrapper::inheritsType().
| void opencog::pln::pr | ( | pair< pHandle, pHandle > | i | ) |
| void opencog::pln::pr2 | ( | std::pair< pHandle, vtree > | i | ) |
Ok, you're not allowed to laugh at the following. It's a collection of my various quick-hack binding printers from the last 6 months.
Definition at line 2228 of file PLNUtils.cc.
References cprintf(), and rawPrint().

| void opencog::pln::pr3 | ( | pair< pHandle, pHandle > | i | ) |
| void opencog::pln::print_progress | ( | ) |
Definition at line 2180 of file PLNUtils.cc.
References cprintf(), and currentDebugLevel.

| void opencog::pln::printAtomTree | ( | const atom & | a, | |
| int | level = 0, |
|||
| int | LogLevel = 5 | |||
| ) |
Definition at line 1187 of file PLNUtils.cc.
References opencog::classserver(), opencog::ClassServer::getTypeName(), opencog::pln::atom::handle, opencog::pln::atom::hs, LOG, make_subst_buf(), opencog::pln::atom::name, printNode1(), repeatc(), and opencog::pln::atom::T.

| void opencog::pln::printBinding | ( | const std::pair< string, Handle > | p | ) |
| void opencog::pln::printLeveledString | ( | int | level, | |
| string | str | |||
| ) |
| string opencog::pln::printNode1 | ( | const atom & | a, | |
| int | level, | |||
| int | LogLevel | |||
| ) |
Definition at line 1173 of file PLNUtils.cc.
References opencog::pln::atom::handle, LOG, make_subst_buf(), opencog::pln::atom::name, repeatc(), opencog::pln::atom::T, and Type2Name().
| string opencog::pln::printNode1 | ( | pHandle | h, | |
| int | level, | |||
| int | LogLevel | |||
| ) |
Definition at line 959 of file PLNUtils.cc.
References GET_ASW, opencog::pln::AtomSpaceWrapper::getName(), opencog::pln::AtomSpaceWrapper::getTV(), opencog::pln::AtomSpaceWrapper::getType(), opencog::TruthValue::isNullTv(), LOG, repeatc(), opencog::TruthValue::toString(), and Type2Name().

| void opencog::pln::printSubsts | ( | BoundVertex | a, | |
| int | LogLevel | |||
| ) |
Definition at line 2257 of file PLNUtils.cc.
References LOG, and make_subst_buf().

| std::string opencog::pln::printTree | ( | pHandle | h, | |
| int | level, | |||
| int | LogLevel | |||
| ) |
Definition at line 979 of file PLNUtils.cc.
References currentDebugLevel, GET_ASW, opencog::pln::AtomSpaceWrapper::getArity(), opencog::pln::AtomSpaceWrapper::getOutgoing(), opencog::pln::AtomSpaceWrapper::getTV(), opencog::pln::AtomSpaceWrapper::getType(), opencog::TruthValue::isNullTv(), opencog::pln::AtomSpaceWrapper::isType(), LOG, PHANDLE_UNDEFINED, printNode1(), repeatc(), opencog::TruthValue::toString(), and Type2Name().

Remove the explicit outgoingset (hs) and replace it with a tree structure.
Definition at line 554 of file PLNatom.cc.
References tr, and Type2Name().
| bool opencog::pln::RealHandle | ( | meta | _target, | |
| Btr< std::set< BoundVertex > > | result_set | |||
| ) |
| bool opencog::pln::RealHandle | ( | meta | _target, | |
| Btr< set< BoundVertex > > | result_set | |||
| ) |
Definition at line 2186 of file PLNUtils.cc.
References cprintf(), GET_ASW, opencog::pln::AtomSpaceWrapper::getTV(), opencog::TruthValue::isNullTv(), and opencog::pln::AtomSpaceWrapper::isType().
| void opencog::pln::recursiveBind | ( | Vertex & | v, | |
| const map< pHandle, pHandle > & | binds | |||
| ) |
Definition at line 1911 of file PLNUtils.cc.
References cprintf().

| void opencog::pln::removeRecursion | ( | std::vector< Btr< set< BoundVertex > > > & | multi_input_vector | ) |
Definition at line 2018 of file PLNUtils.cc.
References opencog::pln::weak_atom< ATOM_REPRESENTATION_T >::bindings, Btr, and removeRecursionFromHandleHandleMap().
| void opencog::pln::removeRecursionFromHandleHandleMap | ( | bindingsT & | ret_bindings | ) |
Definition at line 1997 of file PLNUtils.cc.
References make_real(), and make_vtree().

| void opencog::pln::removeRecursionFromMap | ( | T | mbegin, | |
| T | mend | |||
| ) | [inline] |
| void opencog::pln::removeRecursionFromMapSimple | ( | MapIteratorT | mbegin, | |
| MapIteratorT | mend | |||
| ) | [inline] |
| void opencog::pln::RunPLNTest | ( | Btr< PLNTest > | t | ) |
This should be updated to reflect the new BITNode interface
Definition at line 756 of file Tester.cc.
References haxx::AllowFW_VARIABLENODESinCore, AllTestsInferenceNodes, haxx::ArchiveTheorems, opencog::TruthValue::clone(), cprintf(), currentDebugLevel, test::custom_duration, test::custom_duration2, SPCTools::f, foo42, GET_ASW, opencog::TruthValue::getConfidence(), opencog::TruthValue::getMean(), opencog::pln::AtomSpaceWrapper::getTV(), Singleton< T >::Instance(), INstats, opencog::TruthValue::isNullTv(), rawPrint(), state, opencog::TruthValue::toString(), opencog::Handle::UNDEFINED, v2h, and vt2h.
| void opencog::pln::RunPLNTests | ( | ) |
You can run the tests multiple times, which makes sense if the heuristics function is not deterministic (eg. SoftMax)
Definition at line 207 of file Tester.cc.
References AllTestsInferenceNodes, DETERMINISTIC, SPCTools::f, FitnessEvaluator, InitPLNTests(), INstatsV, INstatsVT, RANDOM, RunPLNTestsOnce(), SOFTMAX, temperature, temperatures, temperaturesN, and v.
| void opencog::pln::RunPLNTestsOnce | ( | ) |
Basic spawning test
Test for multiple roots spawning
Test Generalization for VARIABLE_SCOPE_LINK
Test Generalization for FORALL_LINK
Definition at line 380 of file Tester.cc.
References SPCTools::f, GET_ASW, getCount(), InitAxiomSet(), INstats, INstatsV, makemeta, maketest, mva, and NewNode.

| bool opencog::pln::satSetTest | ( | ) |
| T2 opencog::pln::second | ( | const std::pair< T, T2 > & | p | ) | [inline] |
| static void opencog::pln::setSaveDeductionLookupTable | ( | bool | b | ) | [static] |
| static void opencog::pln::setUseDeductionLookupTable | ( | bool | b | ) | [static] |
| Handle opencog::pln::singular | ( | HandleSeq | hs | ) |
| bool opencog::pln::stlhasi | ( | const T & | c, | |
| const T2 & | k | |||
| ) | [inline] |
Definition at line 551 of file RuleFunctions.cc.
| bool opencog::pln::substitutableTo | ( | pHandle | from, | |
| pHandle | to, | |||
| std::map< pHandle, pHandle > & | bindings | |||
| ) |

| bool opencog::pln::substitutableTo | ( | pHandle | from, | |
| pHandle | to, | |||
| map< pHandle, pHandle > & | bindings | |||
| ) |
Whether one can produce 'to' from 'from' by some variable substitutions.
Definition at line 1887 of file PLNUtils.cc.
| bool opencog::pln::substitutableTo | ( | pHandle | from, | |
| pHandle | to, | |||
| map< string, pHandle > & | bindings | |||
| ) |
Definition at line 1869 of file PLNUtils.cc.
| bool opencog::pln::substitutableTo | ( | atom & | from, | |
| atom & | to, | |||
| map< string, atom > & | bindings, | |||
| const set< subst > & | forbiddenBindings, | |||
| std::pair< string, atom > ** | restart_from, | |||
| std::pair< string, atom > ** | restart_to | |||
| ) |
This would complicate things...
Definition at line 415 of file PLNUtils.cc.
References GET_ASW, opencog::pln::atom::hs, opencog::pln::AtomSpaceWrapper::inheritsType(), LOG, opencog::pln::atom::name, STLhas, substitutableTo(), and opencog::pln::atom::T.
| Btr<std::map<Vertex, Vertex> > opencog::pln::toVertexMap | ( | T | mbegin, | |
| T | mend | |||
| ) | [inline] |
We may have a case like: First bindings: 64 => Britney2:ConceptNode (11) <1.000000, 0.000000> [209] 65 => Osama2:ConceptNode (11) <1.000000, 0.000000> [210] 88 => :EvaluationLink (77) <0.800000, 0.200000> [212] friendOf:PredicateNode (26) <1.000000, 0.000000> [203] :ListLink (32) <1.000000, 0.000000> [211] Britney2:ConceptNode (11) <1.000000, 0.000000> [209] Osama2:ConceptNode (11) <1.000000, 0.000000> [210] 2nd bindings: 88 => :EvaluationLink (77) <1.000000, 0.000000> [281] friendOf:PredicateNode (26) <1.000000, 0.000000> [203] :ListLink (32) <1.000000, 0.000000> [280] $AAAAAAAAD:FWVariableNode (146) <1.000000, 0.000000> [264] $AAAAAAAAE:FWVariableNode (146) <1.000000, 0.000000> [265]
which must be found consistent when these guys are combined!
Definition at line 357 of file PLNUtils.h.
References combo::id::next.

| OutputIterator opencog::pln::transform_if | ( | InputIterator | first, | |
| InputIterator | last, | |||
| OutputIterator | result, | |||
| UnaryOperation | op, | |||
| UnaryPredicate | test | |||
| ) | [inline] |
| Btr<vtree> opencog::pln::tree_transform | ( | vtree & | vt_const, | |
| TransformerT | transformer | |||
| ) | [inline] |
Definition at line 301 of file PLNUtils.h.
References v.

| static void opencog::pln::truncate | ( | number_t & | value | ) | [static] |
| bool opencog::pln::ttsubstitutableTo | ( | pHandle | from, | |
| pHandle | to, | |||
| map< BindKeyT, pHandle > & | bindings, | |||
| BindKeyOpT | bind_key_op | |||
| ) | [inline] |
Definition at line 1691 of file PLNUtils.cc.
References combo::arity(), b(), opencog::classserver(), cprintf(), GET_ASW, opencog::pln::AtomSpaceWrapper::getArity(), opencog::pln::AtomSpaceWrapper::getName(), opencog::pln::AtomSpaceWrapper::getOutgoing(), opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::AtomSpaceWrapper::inheritsType(), isVariableAtom(), NORMAL, PHANDLE_UNDEFINED, and Type2Name().
| const char * opencog::pln::Type2Name | ( | Type | t | ) |
Definition at line 1894 of file PLNUtils.cc.
References opencog::classserver(), and opencog::ClassServer::getTypeName().

| bool opencog::pln::unifiesTo | ( | const vtree & | lhs, | |
| const vtree & | rhs, | |||
| std::map< pHandle, vtree > & | Lbindings, | |||
| std::map< pHandle, vtree > & | Rbindings, | |||
| bool | allow_rhs_binding, | |||
| Type | VarType = FW_VARIABLE_NODE | |||
| ) |
| bool opencog::pln::unifiesTo | ( | const vtree & | lhs, | |
| const vtree & | rhs, | |||
| map< pHandle, vtree > & | Lbindings, | |||
| map< pHandle, vtree > & | Rbindings, | |||
| bool | allow_rhs_binding, | |||
| Type | VarType | |||
| ) |
Definition at line 2532 of file PLNUtils.cc.
References opencog::tree< T, tree_node_allocator >::begin(), and unifiesTo().
| bool opencog::pln::unifiesTo | ( | const vtree & | lhs_t, | |
| const vtree & | rhs_t, | |||
| vtree::sibling_iterator | ltop, | |||
| vtree::sibling_iterator | rtop, | |||
| map< pHandle, vtree > & | Lbindings, | |||
| map< pHandle, vtree > & | Rbindings, | |||
| bool | allow_rhs_binding, | |||
| Type | VarType | |||
| ) |
haxx::
If neither has been bound
Definition at line 2313 of file PLNUtils.cc.
References opencog::tree< T, tree_node_allocator >::iterator_base::begin(), opencog::tree< T, tree_node_allocator >::begin(), cprintf(), opencog::tree< T, tree_node_allocator >::empty(), opencog::tree< T, tree_node_allocator >::end(), GET_ASW, opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::AtomSpaceWrapper::inheritsType(), opencog::pln::AtomSpaceWrapper::isType(), make_vtree(), and opencog::tree< T, tree_node_allocator >::iterator_base::number_of_children().

| bool opencog::pln::unifiesWithVariableChangeTo | ( | const vtree & | lhs_t, | |
| const vtree & | rhs_t, | |||
| std::map< pHandle, pHandle > & | bindings | |||
| ) |
| bool opencog::pln::unifiesWithVariableChangeTo | ( | const vtree & | lhs_t, | |
| const vtree & | rhs_t, | |||
| map< pHandle, pHandle > & | bindings | |||
| ) |
Definition at line 201 of file PLNUtils.cc.
References opencog::tree< T, tree_node_allocator >::begin(), and unifiesWithVariableChangeTo().
| bool opencog::pln::unifiesWithVariableChangeTo | ( | const vtree & | lhs_t, | |
| const vtree & | rhs_t, | |||
| vtree::sibling_iterator | ltop, | |||
| vtree::sibling_iterator | rtop, | |||
| map< pHandle, pHandle > & | bindings | |||
| ) |
Definition at line 208 of file PLNUtils.cc.
References opencog::tree< T, tree_node_allocator >::begin(), cprintf(), opencog::tree< T, tree_node_allocator >::empty(), opencog::tree< T, tree_node_allocator >::end(), GET_ASW, opencog::pln::AtomSpaceWrapper::getType(), opencog::pln::AtomSpaceWrapper::inheritsType(), opencog::pln::AtomSpaceWrapper::isType(), and opencog::tree< T, tree_node_allocator >::iterator_base::number_of_children().

| pHandle opencog::pln::UnorderedCcompute | ( | iAtomSpaceWrapper * | destTable, | |
| Type | linkT, | |||
| const ArityFreeFormula< TruthValue, TruthValue * > & | fN, | |||
| pHandle * | premiseArray, | |||
| const int | n, | |||
| pHandle | CX = PHANDLE_UNDEFINED | |||
| ) |
Release
Definition at line 251 of file RuleFunctions.cc.
References opencog::pln::iAtomSpaceWrapper::addLink(), GET_ASW, and RuleResultFreshness.

| bool opencog::pln::UnprovableType | ( | Type | T | ) |
haxx::
Definition at line 159 of file RuleFunctions.cc.
References GET_ASW.
| bool opencog::pln::valid | ( | Type | T, | |
| HandleSeq & | children | |||
| ) |
| void opencog::pln::VariableMPforms | ( | const atom & | src, | |
| std::set< atom, lessatom_ignoreVarNameDifferences > & | res, | |||
| std::set< subst > * | forbiddenBindings | |||
| ) |
| bool opencog::pln::vectorHas | ( | std::vector< T > | box, | |
| T | key | |||
| ) | [inline] |
Definition at line 509 of file PLNUtils.h.
| OutIterT opencog::pln::Vertices_TO_VtreeProviders | ( | const VContainerT & | vs, | |
| OutIterT | out | |||
| ) | [inline] |
| OutIterT opencog::pln::VtreeProviders_TO_BoundVertices | ( | const VTPContainerT & | vtps, | |
| OutIterT | out | |||
| ) | [inline] |
Definition at line 100 of file RuleApp.h.
References opencog::tree< T, tree_node_allocator >::begin(), and opencog::pln::VtreeProvider::getVtree().
| bool opencog::pln::within | ( | float | a, | |
| float | b, | |||
| float | diff | |||
| ) |
Definition at line 290 of file PLNUtils.cc.
References d().

int opencog::pln::_trail_print_more_count = 0 [static] |
Definition at line 1883 of file BackInferenceTreeNode.cc.
long opencog::pln::_ttt = 0 [static] |
Definition at line 2179 of file PLNUtils.cc.
| int opencog::pln::addlinks = 0 |
Definition at line 180 of file PLNShell.cc.
| float opencog::pln::all_best_fitness = 0.0f |
Definition at line 1555 of file BackInferenceTreeNode.cc.
| const int opencog::pln::AND_MAX_ARITY = FORMULA_MAX_ARITY |
Definition at line 142 of file Formulas.h.
| const std::string opencog::pln::ASSOC_suffix = "__ASSOC__" |
| int opencog::pln::atom_alloc_count = 0 |
Definition at line 37 of file PLNatom.cc.
bool opencog::pln::bigcounter = true [static] |
Definition at line 1964 of file BackInferenceTreeNode.cc.
int opencog::pln::count111 = 0 [static] |
Definition at line 651 of file BackInferenceTreeNode.cc.
| map<int, Type> opencog::pln::counter |
Definition at line 1027 of file PLNUtils.cc.
| set<string> opencog::pln::declared_vars |
Definition at line 152 of file XMLNodeLoader.cc.
| const float opencog::pln::DefaultNodeProbability = 1 / DefaultU |
Definition at line 166 of file Formulas.h.
| const bool opencog::pln::DIRECT_RESULTS_SPAWN = true |
Definition at line 152 of file BackInferenceTreeNode.cc.
| const float opencog::pln::ExtensionToIntensionCountDiscountFactor = 1.0f |
Definition at line 161 of file Formulas.h.
| bool opencog::pln::foo42 = false |
| Btr< set< pHandle > > opencog::pln::ForAll_handles |
Definition at line 611 of file RuleFunctions.cc.
| const int opencog::pln::FORALL_MAX_ARITY = FORMULA_MAX_ARITY |
Definition at line 144 of file Formulas.h.
| const int opencog::pln::FORMULA_MAX_ARITY = 100 |
Definition at line 140 of file Formulas.h.
const int opencog::pln::FWD_CHAIN_MAX_APPS = 100 [static] |
Definition at line 32 of file ForwardChainer.h.
const int opencog::pln::FWD_CHAIN_MAX_FILL = 50 [static] |
Definition at line 36 of file ForwardChainer.h.
const float opencog::pln::FWD_CHAIN_MIN_CONFIDENCE = 0.4f [static] |
Definition at line 33 of file ForwardChainer.h.
const float opencog::pln::FWD_CHAIN_PROB_GLOBAL = 0.3f [static] |
Definition at line 35 of file ForwardChainer.h.
const float opencog::pln::FWD_CHAIN_PROB_STACK = 0.7f [static] |
Definition at line 34 of file ForwardChainer.h.
| int opencog::pln::gethandles = 0 |
Definition at line 181 of file PLNShell.cc.
int opencog::pln::helper1 = 0 [static] |
Definition at line 284 of file XMLNodeLoader.cc.
int opencog::pln::helper2 = 0 [static] |
Definition at line 284 of file XMLNodeLoader.cc.
int opencog::pln::helper3 = 0 [static] |
Definition at line 284 of file XMLNodeLoader.cc.
Definition at line 64 of file FormulasIndefinite.h.
| const float opencog::pln::IndependenceAssumptionDiscount = 1.0f |
Definition at line 163 of file Formulas.h.
| const float opencog::pln::IndependenceAssumptionGeometryDiscount = 1.0f |
Definition at line 164 of file Formulas.h.
| int opencog::pln::inode_alloc_count = 0 |
Definition at line 38 of file PLNatom.cc.
| const float opencog::pln::IntensionToExtensionCountDiscountFactor = 1.0f |
Definition at line 160 of file Formulas.h.
const unsigned int opencog::pln::mapOffset = NOTYPE+1 [static] |
Definition at line 46 of file AtomLookupProvider.h.
| const int opencog::pln::MAX_A = 10 |
Definition at line 51 of file DeductionLookupTable.h.
| const int opencog::pln::MAX_AB = MAX_A |
Definition at line 54 of file DeductionLookupTable.h.
| const int opencog::pln::MAX_B = MAX_A |
Definition at line 52 of file DeductionLookupTable.h.
| const int opencog::pln::MAX_BC = MAX_A |
Definition at line 55 of file DeductionLookupTable.h.
| const int opencog::pln::MAX_C = MAX_A |
Definition at line 53 of file DeductionLookupTable.h.
| const int opencog::pln::MAX_VARIABLE_NUMBER = 5 |
Definition at line 746 of file PLNatom.cc.
| const float opencog::pln::MembershipToExtensionalInheritanceCountDiscountFactor = 1.0f |
Definition at line 159 of file Formulas.h.
| const float opencog::pln::MIN_CONFIDENCE = 0.0000001f |
Definition at line 489 of file PLNUtils.cc.
const float opencog::pln::MIN_CONFIDENCE_FOR_RULE_APPLICATION = 0.00001f [static] |
Definition at line 153 of file BackInferenceTreeNode.cc.
| const strength_t opencog::pln::MIN_MEMBERS_COUNT = 1 |
Definition at line 38 of file SubsetEvalRule.cc.
| const strength_t opencog::pln::MIN_MEMBERS_STRENGTH = 0.000001 |
Definition at line 37 of file SubsetEvalRule.cc.
int opencog::pln::more_count = 0 [static] |
Definition at line 175 of file BackInferenceTreeNode.cc.
| std::map<nocase_string, int> opencog::pln::name2type |
Definition at line 39 of file XMLNodeLoader.cc.
| std::map<std::string, Handle> opencog::pln::nodenames |
Definition at line 41 of file XMLNodeLoader.cc.
| unsigned long opencog::pln::now_interval_len = 50000 |
Definition at line 34 of file LookupRule.cc.
| const int opencog::pln::OR_MAX_ARITY = FORMULA_MAX_ARITY |
Definition at line 143 of file Formulas.h.
int opencog::pln::ParametrizedBITNodes = 0 [static] |
Definition at line 157 of file BackInferenceTreeNode.cc.
| set<Btr<PLNTest> > opencog::pln::PLNTests |
| const bool opencog::pln::PREVENT_LOOPS = false |
Definition at line 154 of file BackInferenceTreeNode.cc.
| gsl_rng* opencog::pln::rng_ = gsl_rng_alloc (gsl_rng_mt19937) |
Definition at line 39 of file FormulasIndefinite.cc.
| const bool opencog::pln::RuleResultFreshness = true |
Definition at line 28 of file ANDRuleSimple.h.
bool opencog::pln::SAVE_DEDUCTION_LOOKUP_TABLE = true [static] |
Definition at line 66 of file FormulasIndefinite.h.
| float opencog::pln::temperature = 0.1f |
| float opencog::pln::temperatures[] |
| const int opencog::pln::temperaturesN = 7 |
| map<int, Btr<tree<Vertex> > > opencog::pln::tests |
Definition at line 1 of file TestTargets.h.
| const float opencog::pln::TV_MIN = 0.000001f |
Definition at line 147 of file Formulas.h.
| bool opencog::pln::UnificationRuleResultFreshness = true |
Definition at line 40 of file CustomCrispUnificationRule.cc.
bool opencog::pln::USE_DEDUCTION_LOOKUP_TABLE = false [static] |
Definition at line 67 of file FormulasIndefinite.h.
| const bool opencog::pln::USE_GENERATOR_CACHE = false |
This cache apparently gives a 30% speed up when active.
Definition at line 150 of file BackInferenceTreeNode.cc.
| int opencog::pln::varcount = 0 |
| int opencog::pln::xml_level = -1 |
Definition at line 43 of file XMLNodeLoader.cc.
1.5.6