vw_constants.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2009 Yahoo! Inc.  All rights reserved.  The copyrights
00003  * embodied in the content of this file are licensed under the BSD
00004  * (revised) open source license.
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * Written (W) 2011 Shashwat Lal Das
00012  * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society.
00013  */
00014 
00015 #ifndef _VW_CONSTANTS_H__
00016 #define _VW_CONSTANTS_H__
00017 
00018 namespace shogun
00019 {
00021 typedef uint32_t (*hash_func_t)(substring, uint32_t);
00022 
00024 typedef uint32_t vw_size_t;
00025 
00027 const int32_t quadratic_constant = 27942141;
00028 
00030 const int32_t constant_hash = 11650396;
00031 
00033 const uint32_t hash_base = 97562527;
00034 
00035 }
00036 
00037 #endif // _VW_CONSTANTS_H__
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation