add example for discriminant function
add ref to source article