jmbm

Fig_15

Oct 10th, 2022 (edited)
351
0
Never
9
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 1.24 KB | None | 0 0
  1. pdf("fig_15.pdf", width = 5, height = 5)
  2. par(bty = "n", las = 0, mar = c(4, 4, 2, 1) + 0.2)
  3.  
  4. # función suma armónicos
  5. sum_arm <- function(n) {
  6.   a <- numeric(n)
  7.   for (i in 1:n) {
  8.     for (j in 1:i) {
  9.       a[j] <- a[j] + 1/i
  10.     }
  11.   }
  12.   a/n
  13. }
  14.  
  15. longitud <- 10
  16.  
  17. plot(NA, NA, xlab = "CV corregido", ylab = "Densidad de probabilidad", xlim = c(0, 2), ylim = c(0, 3))
  18.  
  19. nn <- c(5, 10, 20, 40)
  20. #colores <- rainbow(4)
  21. colfunc <- colorRampPalette(c("orange", "royalblue"))
  22. colores <- colfunc(4)
  23. tipo = 0
  24. for (n in nn) {
  25.  
  26.       tipo <- tipo + 1
  27.       repetir <- 100000
  28.       cvS <- numeric(repetir)
  29.       trozosS <- numeric(n)
  30.       for (j in 1:repetir){
  31.         p_azar <- longitud*runif(n - 1)    # elegir los puntos de corte al azar
  32.         p_azar <- sort(c(0, p_azar, longitud))               # ordenar los cortes
  33.         for (i in 1:n){
  34.           trozosS[i] <- p_azar[i + 1] - p_azar[i]
  35.         }
  36.         trozosS <- sort(trozosS, decreasing = TRUE)
  37.         cvS[j] <- sd(trozosS)/mean(trozosS)*n/(n - 1)
  38.       }
  39.      
  40.       # histograma
  41.       h <- density(cvS)
  42.       lines(h, lwd = 3, col = colores[tipo])
  43.  
  44. }
  45.  
  46. legend("topright", c("n = 5", "n = 10", "n = 20", "n = 40"), bty = "n", lwd = 2, col = colores, cex = 0.8)
  47.  
  48. dev.off()
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Fenlalon
    208 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment