Bi: Bi

View source: R/runELA.R

BiR Documentation

Bi

Description

Identify basin (stable state) and its energy for a given state.

Applies SteepestDescent to the input state and returns the basin (stable state) reached, together with its energy. The stable state is encoded as an integer ID using bin2id.

Usage

Bi(xi, h, j)

Arguments

xi

Binary vector representing the initial state.

h

vector of implicit/explicit environmental effects on species.

j

Matrix of species interactions.

Value

A list with two elements: (1) integer stable state ID (basin assignment), (2) energy of the corresponding stable state.


ELAplus documentation built on May 28, 2026, 5:09 p.m.