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

  • 711c3b2
  • /
  • src
  • /
  • technical
  • /
  • environmental.md
Raw File Download
Permalinks

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
content badge Iframe embedding
swh:1:cnt:1cf0b4079bfcaafd519458aaf2a790f867a48b8d
directory badge Iframe embedding
swh:1:dir:7696d39678e6db4ba664281c8ef17262a2d18a13
Citations

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
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
environmental.md
```@meta
CurrentModule = DataEnvelopmentAnalysis
```

# Environmental Model

In this example we compute the *Aparicio, Pastor and Zofio (2023)* environmental model for inputs `X`, good outputs `Y`, and bad outputs `B`, using directions `Gx`, `Gy`, and `Gb`. If not specified, default directions are `Gx = :Zeros`, `Gy = :Observed`, `Gb = :Observed`.

```@example env
using DataEnvelopmentAnalysis

X = ones(5, 1);
Y = [7; 5; 1; 3; 4];
B = [2; 5; 3; 3; 2];

deaenv1 = deaenv(X, Y, B)
```

Estimated efficiency scores are returned with the `efficiency` function:
```@example env
efficiency(deaenv1)
```

The optimal peers, ``λ``, are returned with the `peers` function and are returned as a `DEAPeers` object:
```@example env
peers(deaenv1)
```

### deaenv Function Documentation

```@docs
deaenv
```

Software Heritage — Copyright (C) 2015–2025, 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— Contact— JavaScript license information— Web API

back to top