Learn R Programming

rasterdiv (version 0.3.5)

.Prob: Calculate Point Probability

Description

This function computes the probability of each point in a given vector or matrix.

Usage

.Prob(C)

Value

A vector of probabilities corresponding to each point in `C`.

Arguments

C

A numeric vector or matrix.

Examples

Run this code
C <- c(1, 1, 2, 2, 3)
.Prob(C)

Run the code above in your browser using DataLab