If you get any good answers please share them with the list. I have
found it necessary to utilize the following site:
http://www.cs.sunysb.edu/~algorith/implement/wilf/distrib/processed/
which has algorithms for generating permutations and combinations of a
set. These are written in FORTRAN which was easy enough for me (but may
not be for you) to put into a dll and call from Splus. It may be, that
porting the fortran to Splus does not cause much of a speed penalty so
it may be worthwhile to just code the algorithms in Splus (they tend to
be fairly short). Good luck.
Michael Conklin
****************************************
Michael Conklin
Analytic Services
GfK Custom Research Inc.
8401 Golden Valley Rd
Minneapolis, MN 55427
mconklin@gfkcustomresearch.com
763-542-0821 (Voice)
763-542-0864 (Fax)
>>> "Reyderman, Larisa" <larisa.reyderman@spcorp.com> 4/14/2005 3:54:20
PM >>>
Dear All,
I have a seemingly easy question. I need to create a matrix consisting
of
all possible permutations of the following vector:
0.5 1.0 1.5 2.0 3.0 4.0 5.0 6.0 8.0 10.0 12.0 16.0
I know that "sample" function with (replace=F) will generate a
permutation,
however, I need all possible permutations.
Thank you for your help.
Larisa
*********************************************************************
This message and any attachments are solely for the intended recipient.
If you are not the intended recipient, disclosure, copying, use or
distribution of the information included in this message is prohibited
-- Please immediately and permanently delete.
===================================================================
IMPORTANT CONFIDENTIALITY NOTICE: The documents and accompanying
email communication contain confidential information belonging to
the sender, GfK Custom Research Inc. and/or GfK Database Solutions,
and are legally protected. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution
or the taking of any action in reliance on the contents of the
communicated information is strictly prohibited. If you have
received this communication in error, please contact the sender and
delete the material from your computer.
===================================================================
|