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
  • /
  • DMD_InfluenceComputation.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:5194054ecaef8f8336a15aa0d2cab03483ec4e0d
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
DMD_InfluenceComputation.m
function [DMD] = DMD_InfluenceComputation(DATA,DMD)
% This function DMD_InfluenceComputation computes the influence of DMD
% components (see Eq. 20)
%
%
% [DMD] = DMD_InfluenceComputation(DATA,DMD)
%
% Input: a struct DATA and a struct DMD with the following properties 
%   * DATA.type
%   * DATA.scalingDiag <-- optional and only for multivariate data
%   * DMD.lambda
%   * DMD.ThetaScaled
%
% Output: 
%   * DMD.influenceDiagK

if(DATA.type == "univariate")
    
    for k = 1:length(DMD.lambda)
        DMD.influenceDiagK(k) = norm(TOOL_DiagonalAveragingMulti(real(DMD.ThetaScaled(:,k) * DMD.lambda(k).^(0:DATA.m)),DATA.delayParameter), "fro");
    end

elseif(DATA.type == "multivariate")

    if(isfield(DATA,'scalingDiag'))
        scalingMatrix = diag(1./vecnorm(DATA.timeSeries,2,2)) * diag(DATA.scalingDiag);
    else
        scalingMatrix = diag(1./vecnorm(DATA.timeSeries,2,2));
    end
    
    for k = 1:length(DMD.lambda)
        DMD.influenceDiagK(k) = norm(scalingMatrix*TOOL_DiagonalAveragingMulti(real(DMD.ThetaScaled(:,k) * DMD.lambda(k).^(0:DATA.m)),DATA.delayParameter), "fro");
    end

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