Learn R Programming

spatialEco (version 2.0-2)

fuzzySum: Fuzzy Sum

Description

Calculates the fuzzy sum of a vector

Usage

fuzzySum(x)

Value

Value of fuzzy sum

Arguments

x

Vector of values to apply fuzzy sum

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Details

The fuzzy sum is an increasing linear combination of values. This can be used to sum probabilities or results of multiple density functions.

Examples

Run this code
p = c(0.8,0.76,0.87)
  fuzzySum(p)
  sum(p)

p = c(0.3,0.2,0.1)
  fuzzySum(p)
  sum(p)  

Run the code above in your browser using DataLab