View source: R/full_information.R
crisp | R Documentation |
Give full weight to occurrences that satisfies a logical condition.
crisp(x, lgl) ## Default S3 method: crisp(x, lgl) ## S3 method for class 'numeric' crisp(x, lgl) ## S3 method for class 'matrix' crisp(x, lgl) ## S3 method for class 'ts' crisp(x, lgl) ## S3 method for class 'xts' crisp(x, lgl) ## S3 method for class 'data.frame' crisp(x, lgl) ## S3 method for class 'tbl_df' crisp(x, lgl)
x |
An univariate or a multivariate distribution. |
lgl |
A |
A numerical vector of class ffp
with the new
probabilities distribution.
exp_decay
kernel_normal
library(ggplot2) # invariance (stationarity) ret <- diff(log(EuStockMarkets)) # full weight on scenarios where CAC returns were above 2% market_condition <- crisp(x = ret, ret[ , 3] > 0.02) market_condition autoplot(market_condition) + scale_color_viridis_c()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.