From 8994c7b5cf56f540c71c763173a8927569ba94b3 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sun, 24 Jul 2016 22:42:09 +0200 Subject: Experimenting with K Order Markovian chains. I do not recommend using this branch ATM, it has not been tested. --- src/core/knowledge.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/core/knowledge.h') diff --git a/src/core/knowledge.h b/src/core/knowledge.h index c9ea342..93f5f49 100644 --- a/src/core/knowledge.h +++ b/src/core/knowledge.h @@ -75,4 +75,22 @@ int ZoO_knowledge_extend ZoO_char * result [const static 1] ); +int ZoO_knowledge_find_link +( + ZoO_index const links_count, + struct ZoO_knowledge_link links [const], + ZoO_index const sequence [const restrict static ZoO_SEQUENCE_SIZE], + ZoO_index result [const restrict static 1] +); + +/* Create it if it's not found. */ +int ZoO_knowledge_get_link +( + ZoO_index links_count [const], + struct ZoO_knowledge_link * links [const], + ZoO_index const sequence [const restrict static ZoO_S_LINK_SIZE], + ZoO_index result [const restrict static 1] +); + + #endif -- cgit v1.2.3-70-g09d2