Learn R Programming

rasterdiv (version 0.3.5)

.Deltas: Calculate Differences Among Values

Description

This function computes the differences among values of a table, used in probability calculations.

Usage

.Deltas(P, first = 0)

Value

A vector or matrix of differences.

Arguments

P

A numeric vector or matrix representing probabilities.

first

The starting value for difference calculation.

Examples

Run this code
P <- c(0.2, 0.3, 0.5)
.Deltas(P)

Run the code above in your browser using DataLab