X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=octave_packages%2Fstatistics-1.1.3%2Fff2n.m;fp=octave_packages%2Fstatistics-1.1.3%2Fff2n.m;h=f152a0c088aacd564e6e74d8589e0c1603d1e290;hb=f5f7a74bd8a4900f0b797da6783be80e11a68d86;hp=0000000000000000000000000000000000000000;hpb=1705066eceaaea976f010f669ce8e972f3734b05;p=CreaPhase.git diff --git a/octave_packages/statistics-1.1.3/ff2n.m b/octave_packages/statistics-1.1.3/ff2n.m new file mode 100644 index 0000000..f152a0c --- /dev/null +++ b/octave_packages/statistics-1.1.3/ff2n.m @@ -0,0 +1,13 @@ +## Author: Paul Kienzle +## This program is granted to the public domain. + +## -*- texinfo -*- +## @deftypefn {Function File} ff2n (@var{n}) +## Full-factor design with n binary terms. +## +## @seealso {fullfact} +## @end deftypefn + +function A=ff2n(n) + A = fullfact (2 * ones (1,n)) - 1; +endfunction