You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
175 B

  1. CREATE OR REPLACE FUNCTION `gauss`(
  2. x DOUBLE,
  3. c DOUBLE,
  4. sig DOUBLE
  5. ) RETURNS double
  6. RETURN EXP(
  7. (
  8. - 1 * POWER(( x - c ), 2 )/(
  9. 2 * POWER( sig, 2 )
  10. )
  11. )
  12. );