laplace.h 501 B

12345678910111213141516
  1. /* Copyright (c) 2003, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. #ifndef TOR_LAPLACE_H
  6. #define TOR_LAPLACE_H
  7. #include "lib/cc/compat_compiler.h"
  8. #include "lib/cc/torint.h"
  9. int64_t sample_laplace_distribution(double mu, double b, double p);
  10. int64_t add_laplace_noise(int64_t signal, double random, double delta_f,
  11. double epsilon);
  12. #endif