Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/kraketm/ConstrainedDMD
06 August 2026, 14:24:23 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    No releases to show
  • e660bed
  • /
  • toolbox
  • /
  • TOOL_DiagonalAveragingMulti.m
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:7d66c3de6bf8ee951deee41a17a1041434b4ab74
origin badgedirectory badge
swh:1:dir:79df38535a911a6272e6973c74eed986195b222f
origin badgerevision badge
swh:1:rev:543b1af120732aa94738315eb75b8a4394caa951
origin badgesnapshot badge
swh:1:snp:3a2a144e060e76b48791aeb591bfbb26116f6bdd

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 543b1af120732aa94738315eb75b8a4394caa951 authored by timkrake on 24 November 2022, 08:36:43 UTC
Update README
Tip revision: 543b1af
TOOL_DiagonalAveragingMulti.m
function [v] = TOOL_DiagonalAveragingMulti(A,d)
% This function TOOL_DiagonalAveragingMulti diagonal averages time delayed
% data, which was originally multivariate. Therefore, an additional input
% in form of the delay parameter is needed.
%
% A small example for the diagonal averaging:
% |x11 x12|
% |x21 x22| ----- diagonal averaging -----> [x11 x21+x12 x31+x22 x32]
% |x31 x32|
%
% [delayedTimeSeries] = TOOL_DiagonalAveraging(timeSeries, delayParameter)
%
% Input: 
%   * A     matrix / time delayed data
%   * d     delay parameter
%
% Output: 
%   * v     diagonal averaged data


[n,tmp_m] = size(A);
m = tmp_m - 1;

N = n/(d+1);

if(~(mod(N,1) == 0))
    error('somethings wrong with the dimension of the delay embedding and the diagonal averaging'); 
end


if d == 0
    v = A;
    return
end

v = zeros(N,d+m+1);

i = 1;
for k = -d:m
    
    if(k<0)
        numDiagElements = min(d+1+k,m+1);
        row_start = 1+N*(d+k);
        col_start = 1;
    else
        numDiagElements = min(m+1-k,d+1);
        row_start = 1+N*d;
        col_start = 1+k;
    end
    
    diag_vec = zeros(N,1);
    for l = 0:numDiagElements-1
        diag_vec = diag_vec + A( (row_start-l*N):(row_start-l*N)+(N-1) , col_start+l );
    end


    v(:,i) = diag_vec/numDiagElements;
    
    i = i+1;
end


end

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API