home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 9.ddi / IDENT.DI$ / IDMSIZE.M < prev    next >
Encoding:
Text File  |  1993-03-11  |  930 b   |  28 lines

  1. function maxdef = idmsize(N,d)
  2. %IDMSIZE    Sets default value for the variable maxsize (see help AUXVAR)
  3. %
  4. %    maxdef = idmsize(N,d)
  5. %
  6. %    N : Number of data points to be processed
  7. %    d : Number of parameters to be estimated
  8. %     maxdef : Default value of maxsize
  9. %
  10. %    USERS WHO WORK WITH VERY LARGE DATA RECORDS AND LARGE MODELS SHOULD
  11. %    TRIM THIS ALGORITHM TO HIS OR HER COMPUTER
  12.  
  13. %    L. Ljung 10-1-89
  14. %    Copyright (c) 1989-90 by the MathWorks, Inc.
  15. %    All Rights Reserved.
  16.  
  17. if nargin<2,d=6;end
  18. [cmp,mem]=computer;
  19. if mem<8192, maxdef=4096;
  20.  else maxdef=50000;end
  21. % The value of maxdef that gives the most efficient computing time
  22. % in the parameter estimation algorithms depends on the memory available
  23. % in the computer.
  24. % The algorithms will work with matrices that are N by d, provided the
  25. % number of elements is less than maxsize. Note that the number d is
  26. % not provided by all of the estimation algorithms.
  27.  
  28.