NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | Public Members | List of all members
nvbio::uniform_seeds_functor< index_type > Struct Template Reference

Detailed description

template< typename index_type = uint32>
struct nvbio::uniform_seeds_functor< index_type >

a Seeding Functor returning seeds sampled at regular intervals

Definition at line 97 of file seeds.h.

#include <seeds.h>

Public Types

typedef index_type argument_type
 
typedef index_type result_type
 
typedef vector_type
< index_type, 2u >::type 
range_type
 

Public Methods

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uniform_seeds_functor (const uint32 _len, const uint32 _interval)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE index_type 
operator() (const index_type length) const
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE range_type 
seed (const uint32 length, const index_type i) const
 

Public Members

const uint32 len
 the seed length More...
 
const uint32 interval
 the sampling interval More...
 

Member Typedef Documentation

template<typename index_type = uint32>
typedef index_type nvbio::uniform_seeds_functor< index_type >::argument_type

Definition at line 99 of file seeds.h.

template<typename index_type = uint32>
typedef vector_type<index_type,2u>::type nvbio::uniform_seeds_functor< index_type >::range_type

Definition at line 101 of file seeds.h.

template<typename index_type = uint32>
typedef index_type nvbio::uniform_seeds_functor< index_type >::result_type

Definition at line 100 of file seeds.h.

Constructor & Destructor Documentation

template<typename index_type = uint32>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::uniform_seeds_functor< index_type >::uniform_seeds_functor ( const uint32  _len,
const uint32  _interval 
)
inline

constructor

Parameters
_intervalthe sampling interval

Definition at line 107 of file seeds.h.

Member Function Documentation

template<typename index_type = uint32>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE index_type nvbio::uniform_seeds_functor< index_type >::operator() ( const index_type  length) const
inline

return the number of seeds for a given string length

Definition at line 112 of file seeds.h.

template<typename index_type = uint32>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE range_type nvbio::uniform_seeds_functor< index_type >::seed ( const uint32  length,
const index_type  i 
) const
inline

return the coordinate of the i-th seed

Definition at line 123 of file seeds.h.

Member Data Documentation

template<typename index_type = uint32>
const uint32 nvbio::uniform_seeds_functor< index_type >::interval

the sampling interval

Definition at line 126 of file seeds.h.

template<typename index_type = uint32>
const uint32 nvbio::uniform_seeds_functor< index_type >::len

the seed length

Definition at line 125 of file seeds.h.


The documentation for this struct was generated from the following file: