?? abstractsampler.h
字號:
/* -*-C-*-
********************************************************************************
*
* File: AbstractSampler.h
* RCS: $Header: /cvsroot/rosetta/rosetta/src/kernel/sav/library/ea/AbstractSampler.h,v 1.1.1.1 2000/11/01 21:33:51 aleksander Exp $
* Description:
* Author: Staal Vinterbo
* Created: Tue Aug 18 14:36:39 1998
* Modified: Thu Aug 20 13:22:23 1998 (Staal Vinterbo) staalv@or.idi.ntnu.no
* Language: C
* Package: N/A
* Status: Experimental (Do Not Distribute)
*
* (c) Copyright 1998, Staal Vinterbo, all rights reserved.
*
********************************************************************************
*/
#ifndef INCLUDED_ABSTRACTSAMPLER_H
#define INCLUDED_ABSTRACTSAMPLER_H
#include "../copyright.h" // Added 000323 by Aleksander 豩rn.
#include "macros.h"
#include "Rand.h"
#include <math.h>
class AbstractSampler
{
public:
virtual ~AbstractSampler()
{
}
public:
virtual int sample(Vector(double) &cumdist,
Vector(int) &indices, int elements);
virtual int sampleNR(Vector(double) &cumdist,
Vector(int) &indices, int elements);
static int distToCumdist(Vector(double) &dist, Vector(double) &cumdist);
static int cumdistToDist(Vector(double) &cumdist, Vector(double) &dist);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -