anam.factor2qt {RGeostats} R Documentation

## Calculate Recovery Functions from Estimated Factors

### Description

Calculate Recovery Functions from Estimated Factors

### Usage

```anam.factor2qt(anam, db, recovery=c("Z"), cutmine=NA, zmax=NA,
flag.est = TRUE, flag.std = FALSE,
names.est = NA, names.std = NA, flag.correct=TRUE,
```

### Arguments

 `anam` The `anam-class` structure which contains the definition of the Discrete Anamorphosis. `db` The `db-class` which contains the factors (locator "z") to be transformed into the recovery functions, selected using the 'recovery' argument. `recovery` Names of the recovery functions to be calculated. This list should contain one or several among the following list of keywords: Z: The recovered grade T: The tonnage (per cutoff) Q: The Metal quantity (per cutoff) B: The conventional benefit (per cutoff) M: The average grade above cutoff (per cutoff) `cutmine` Array containing the required mining cutoffs. If not provided, the set of cutoffs are the one defined in the Anamorphosis Model. `zmax` When interpolating the QT curves, we need to define the maximum value that the target variable can reach. `flag.est` When TRUE, the estimation of the different recovery functions are calculated and stored in the resulting `db-class`. The calculations are performed from the list of estimated factors whose positions are defined with the argument 'names.est'. `flag.std` When TRUE, the estimation standard deviation of the different recovery functions are calculated and stored in the resulting `db-class`. The calculations are performed from the list of estimation standard deviations of factors, whose positions are defined with the argument 'names.std'. `names.est` List of variables which contain the estimated values of the factors. If not specified (but flag.est=TRUE), the set of variables assigned to the Z-locator are used by default. `names.std` List of variables which contain the standard deviation of the factor estimation. If not specified (but flag.std=TRUE), the set of variables is built using the names of the variables specified in the argument names.est and replacing the substring ".estim" by the substring ".stdev". `flag.correct` When TRUE, the Tonnages are corrected in order to ensure the order relationship before calculating other quantities. `radix` Radix used for naming the output variables. `modify.target` Decides whether or not the newly created variables will have their locator defined or not. For more information, see `db.locmod`.

### Value

The `db-class` contains the recovery functions.

For each type of recovery function, there are as many variables as they are factors in the Discretized Anamorphosis (for T, Q, B and m) and only 1 variable for Z.

For each recovery function (previosuly described), one variable contains its estimated value (if 'flag.est' is TRUE) and one variable contains its estimation standard deviation (if 'flag.std' is TRUE and a valid list of variables containing the standard deviations of the estimated factors is provided).

[Package RGeostats version 11.1.2 Index]