Skip to content
Snippets Groups Projects
Select Git revision
  • e402e2c899a718c12573a30ea6aed30229e19172
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Issue/2355-topLevelOrg
  • Issue/2328-noFailOnLog
  • Hotfix/2371-fixGitLabinRCV
  • Issue/2287-guestRole
  • Fix/xxxx-activateGitlab
  • Test/xxxx-enablingGitLab
  • Issue/2349-gitlabHttps
  • Issue/2259-updatePids
  • Issue/2101-gitLabResTypeUi
  • Hotfix/2202-fixNaNQuota
  • Issue/2246-quotaResoval
  • Issue/2221-projectDateCreated
  • Hotfix/2224-quotaSizeAnalytics
  • Fix/xxxx-resourceVisibility
  • Issue/2000-gitlabResourcesAPI
  • v4.4.3
  • v4.4.2
  • v4.4.1
  • v4.4.0
  • v4.3.4
  • v4.3.3
  • v4.3.2
  • v4.3.1
  • v4.3.0
  • v4.2.8
  • v4.2.7
  • v4.2.6
  • v4.2.5
  • v4.2.4
  • v4.2.3
  • v4.2.2
  • v4.2.1
  • v4.2.0
  • v4.1.1
  • v4.1.0
41 results

ProjectController.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    mean.m 890 B
    function varargout = mean(varargin)
    % normal mean value
    
    % <ITA-Toolbox>
    % This file is part of the ITA-Toolbox. Some rights reserved. 
    % You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder. 
    % </ITA-Toolbox>
    
    narginchk(1,1);
    data = varargin{1};
    if numel(data)>1 %get mean over multiple instances and not over channel of each struct
        result = sum(data)/numel(data);
        
        resChannelNames = result.channelNames;
        for idxCh = 1:result.nChannels   %alter name field of all channels
            resChannelNames{idxCh} = ['mean' resChannelNames{idxCh}(4:end)];
        end
        result.channelNames = resChannelNames;
    else % mean over channels
        result = sum(data)/data.nChannels;
        result.channelNames = {['mean' result.channelNames{1}(4:end)]};
    end
    
    %% Add history line
    varargout{1} = ita_metainfo_add_historyline(result,'itaSuper.mean',varargin);
    end