head	1.5;
access
	monica
	thoth
	fjsoria;
symbols
	Eglin_alpha_1:1.3;
locks
	monica:1.5; strict;
comment	@// @;


1.5
date	94.11.29.19.22.17;	author fjsoria;	state Exp;
branches;
next	1.4;

1.4
date	94.08.21.15.21.38;	author monica;	state Exp;
branches;
next	1.3;

1.3
date	93.01.20.11.39.47;	author thoth;	state Exp;
branches;
next	1.2;

1.2
date	92.12.16.14.48.33;	author thoth;	state Exp;
branches;
next	1.1;

1.1
date	92.09.30.10.53.29;	author thoth;	state Exp;
branches;
next	;


desc
@a place for pointset utilities that come in handy during testing.
@


1.5
log
@no changes
@
text
@// Emacs: -*- C++ -*-

//
// $Log: ps-util.h,v $
// Revision 1.4  1994/08/21  15:21:38  monica
// updated for file name shortening (DblPoint, etc)
//
// Revision 1.3  1993/01/20  11:39:47  thoth
// Random pointset is a test of the IA_PSPred template.
//
// Revision 1.2  92/12/16  14:48:33  thoth
// conversion to IA_ mostly complete
// 
// Revision 1.1  92/09/30  10:53:29  thoth
// Initial revision
// 
//

#ifndef pointset_utils_h
#define pointset_utils_h

#include "IntPS.h"

//#include "with-ia-pointset.h"
#include "ClosurePS.h"

class Random_PS:public IA_ClosurePS<IA_Point<int> > {
    double	density;
  public:
    IA_ClosurePS<IA_Point<int> > *clone_self() const;
    int contains(const IA_Point<int> &ip) const;
    Random_PS(unsigned dim, double d)
    :IA_ClosurePS<IA_Point<int> >(dim), density(d) {};
};

IA_Set<IA_Point<int> > make_random_pointset(unsigned dimen, unsigned card,
				 int bottom, int top);

#endif
@


1.4
log
@updated for file name shortening (DblPoint, etc)
@
text
@d4 4
a7 1
// $Log: pointset-utils.h,v $
a26 3
IA_Set<IA_Point<int> > make_random_pointset(unsigned dimen, unsigned card,
				 int bottom, int top);

d35 3
@


1.3
log
@Random pointset is a test of the IA_PSPred template.
@
text
@d4 4
a7 1
// $Log:	pointset-utils.h,v $
d19 1
a19 1
#include "IntPointSet.h"
d21 2
a22 2
#include "with-ia-pointset.h"
#include "PredicatePS.h"
d24 1
a24 1
IntPointSet make_random_pointset(unsigned dimen, unsigned card,
d27 1
a27 1
class Random_PS:public IA_PSPred<IntPoint> {
d30 2
a31 2
    IA_PSPred<IntPoint> *clone_self() const;
    int contains(const IntPoint &ip) const;
d33 1
a33 1
    :IA_PSPred<IntPoint>(dim), density(d) {};
@


1.2
log
@conversion to IA_ mostly complete
@
text
@d5 3
d19 1
d23 9
@


1.1
log
@Initial revision
@
text
@d4 4
a7 1
// $Log:	test004.C,v $
d14 2
@
