www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/+mbcdoe/@candidateset/candidateset.m

    classdef candidateset < mbcdoe.designproperties
    %MBCDOE.CANDIDATESET candidate set class for design of experiments
    %
    % A mbcdoe.candidateset object represents the candidate set of all
    % possible points for use in an optimal design. CandidateSet is a
    % property of optimal design generators. The CreateCandidateSet method
    % is provided to create a candidate set from a mbcdoe.design object.
    %
    % Types = getAlternativeTypes(CandidateSet) returns a list of valid
    % candidate set types. The list of valid candidate set types is:
    %     'Grid'
    %     'Grid/Lattice'
    %     'Halton Sequence'
    %     'Lattice'
    %     'Sobol Sequence'
    %     'Stratified Lattice'
    %     'User-defined'
    %
    % See also mbcdoe.design, mbcdoe.design.CreateCandidateSet, getAlternativeTypes
    
    %  Copyright 2007 The MathWorks, Inc.

    
     methods (Hidden)
       
        function obj = candidateset(des,varargin)
            obj = obj@mbcdoe.designproperties(des,varargin{:});
        end
        
        function disp(p)
            %DISP
            for i=1:numel(p)
                disp([p(i).Type,' candidate set'])
            end
        end
        
     end
     methods
        
        function list = getAlternativeTypes(D)
            %GETALTERNATIVETYPES list of candidate set types
            %
            % list = getAlternativeTypes(D)
            %   The list is a list of candidate set types which could be
            %   used as alternative candidate sets for the current
            %   candidate set. 
           
            if ~isscalar(D)
                error(message('mbc:doe:InvalidState', class( D )))
            end
            nf = nfactors(D.Object);
            list = mbcdoe.CandidateSetTypes(nf);
        end
    end
end