Skip to content
Snippets Groups Projects
Select Git revision
  • 02d713a237464f506f6c4d28ac0471eb221b6f12
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2583-treeBug
  • Hotfix/2504-formGen
  • Issue/2309-docs
  • Issue/2462-removeTraces
  • Hotfix/2459-EncodingPath
  • Hotfix/2452-linkedDeletion
  • Issue/1792-newMetadataStructure
  • Hotfix/2384-guestsAndLinked
  • v2.8.14-Hotfix2365
  • Hotfix/2365-targetClassWorks
  • Hotfix/2371-fixGitLabinRCV
  • Fix/xxxx-activateGitlab
  • Test/xxxx-enablingGitLab
  • Issue/2349-gitlabHttps
  • Issue/2287-guestRole
  • Hotfix/2296-selectedValuesNotReturned
  • Issue/2102-gitLabResTypeRCV
  • v2.11.5
  • v2.11.4
  • v2.11.3
  • v2.11.2
  • v2.11.1
  • v2.11.0
  • v2.10.3
  • v2.10.2
  • v2.10.1
  • v2.10.0
  • v2.9.4
  • v2.9.3
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.16
  • v2.8.15
  • v2.8.14
  • v2.8.13
  • v2.8.12
41 results

TreeController.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    reduction_factor_creation_new.m 1.63 KiB
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    % Function to calculate reduction factor
    %
    % @author Marco Pau <mpau@eonerc.rwth-aachen.de>
    % @copyright 2019, Institute for Automation of Complex Power Systems, EONERC
    % @license GNU General Public License (version 3)
    %
    % PVgenerator
    %
    % This program is free software: you can redistribute it and/or modify
    % it under the terms of the GNU General Public License as published by
    % the Free Software Foundation, either version 3 of the License, or
    % any later version.
    %
    % This program is distributed in the hope that it will be useful,
    % but WITHOUT ANY WARRANTY; without even the implied warranty of
    % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    % GNU General Public License for more details.
    %
    % You should have received a copy of the GNU General Public License
    % along with this program.  If not, see <http://www.gnu.org/licenses/>.
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    function [d_dir, d_dif] = reduction_factor_creation_new(start_time, end_time, cloudiness)
    
    len = end_time - start_time;
    
    if cloudiness == 1
        d_dir = zeros(1,len);
        d_dif = zeros(1,len);
    else
        load('Transition_matrix.mat');
        load('White_covariance_matrix.mat');
    
        F_matrix = reshape(F_matrix_out_tot(cloudiness,:,:),[2 2]);
        cov_w1 = reshape(cov_w1_out_tot(cloudiness,:,:),[2 2]);
        cov_w1 = (cov_w1 + cov_w1.')/2;
        d(1:2,1) = mvnrnd([0;0],cov_w1);
    % F_matrix
    % cov_w1
    
        for x = 2 : len
            d(1:2,x) = F_matrix * d(1:2,x-1) + mvnrnd([0;0],cov_w1)';   
        end
        d_dir = d(1,:);
        d_dif = d(2,:);
    end