Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,711
Issues
1,711
List
Boards
Labels
Service Desk
Milestones
Merge Requests
86
Merge Requests
86
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
63c1041e
Commit
63c1041e
authored
Sep 29, 2015
by
Mikaël Salson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IKmerStore: new finish_building() method
Must be called after having inserted all the sequences.
parent
0f9a0b5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
algo/core/automaton.h
algo/core/automaton.h
+5
-0
algo/core/automaton.hpp
algo/core/automaton.hpp
+5
-0
algo/core/kmerstore.h
algo/core/kmerstore.h
+3
-0
No files found.
algo/core/automaton.h
View file @
63c1041e
...
...
@@ -28,6 +28,11 @@ public:
*/
virtual
void
build_failure_functions
()
=
0
;
/**
* @inherited from IKMerStore
*/
void
finish_building
();
/**
* @return the information stored for this state
*/
...
...
algo/core/automaton.hpp
View file @
63c1041e
...
...
@@ -5,6 +5,11 @@
//////////////////// IMPLEMENTATIONS ////////////////////
template
<
class
Info
>
void
AbstractACAutomaton
<
Info
>::
finish_building
()
{
build_failure_functions
();
}
template
<
class
Info
>
bool
AbstractACAutomaton
<
Info
>::
isInitialState
(
void
*
state
)
{
return
state
==
initialState
;
...
...
algo/core/kmerstore.h
View file @
63c1041e
...
...
@@ -291,6 +291,9 @@ void IKmerStore<T>::insert(const seqtype &sequence,
}
}
template
<
class
T
>
void
IKmerStore
<
T
>::
finish_building
()
{}
template
<
class
T
>
float
IKmerStore
<
T
>::
getIndexLoad
(
const
T
kmer
)
const
{
return
kmer
.
isUnknown
()
?
1
-
getIndexLoad
()
:
getIndexLoad
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment