/usr/include/shogun/ui/GUIDistance.h is in libshogun-dev 3.2.0-7.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 1999-2008 Soeren Sonnenburg
* Written (W) 1999-2008 Gunnar Raetsch
* Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
*/
#ifndef __GUIDISTANCE_H__
#define __GUIDISTANCE_H__
#include <shogun/lib/config.h>
#include <shogun/base/SGObject.h>
#include <shogun/distance/Distance.h>
#include <shogun/features/Features.h>
namespace shogun
{
class CSGInterface;
/** @brief UI distance */
class CGUIDistance : public CSGObject
{
public:
/** constructor */
CGUIDistance() {};
/** constructor
* @param interface
*/
CGUIDistance(CSGInterface* interface);
/** destructor */
~CGUIDistance();
/** get current distance */
CDistance* get_distance();
/** set new distance */
bool set_distance(CDistance* dist);
/** create generic distance given by type */
CDistance* create_generic(EDistanceType type);
/** create Minkowski Metric */
CDistance* create_minkowski(float64_t k=3);
/** create HammingWord Distance */
CDistance* create_hammingword(bool use_sign=false);
/** initialize distance */
bool init_distance(const char* target);
/** save distance
* @param param
*/
bool save_distance(char* param);
/** is initialized */
bool is_initialized() { return initialized; }
/** @return object name */
virtual const char* get_name() const { return "GUIDistance"; }
protected:
/** distance */
CDistance* distance;
/** ui */
CSGInterface* ui;
/** initialized */
bool initialized;
};
}
#endif //__GUIDISTANCE_H__
|