You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: CPDUnif.m
    path of file: ./repos/BPL/classes
    
    the code of the file until where you have to start completion: classdef CPDUnif
   %
   % Replace CPDs that govern sub-stroke shape and scales
   % with just uniform distributions
   %  
   
   methods (Static)
              
        % ---
        % Shape model (X)
        % ---        
        function bspline_stack = sample_shape_type(libclass,subid)
        % Given a vector of cluster ids (id), sample
        % from the vanilla gaussian model
        % associated with it
        %
        % Input
        %  subid [k x 1]: the id (index) of the sub-stroke
        %
        % Output
        %  bspline_stack: [ncpt x 2 x k] sampled spline
             assert(all(isnan(libclass.shape.mu)));
             assert(isvector(subid));
             k = length(subid);
             sz = [libclass.ncpt 2 k];
             lim = 
    
function ll = score_shape_type(libclass,bspline_stack,subid)
        % 
        % Input
        %  subid [k x 1]: the id (index) of the sub-stroke
        %  bspline_stack: (ncpt x 2 x k) shapes of bsplines
        %
        % Output
        %  ll : [k x 1]: vector of scores
            assert(all(isnan(libclass.shape.mu)));
            assert(isvector(subid));            
            lim = [-libclass.newscale libclass.newscale];
            rg = lim(2)-lim(1);
            [ncpt,dim,k] = size(bspline_stack);
            nn = ncpt * dim;                       
            ll = -nn.*log(rg);
            ll = repmat(ll,[k 1]);
            for i=1:k
                below = bspline_stack(:,:,i) < lim(1);
                above = bspline_stack(:,:,i) > lim(2);
                out = below | above;
                if any(out(:))
                   ll(i) = -inf; 
                end