Skip to main content
1 of 8
user avatar
user avatar

How do you pattern match a DataDistribution

I have a function, f[dist_, samp_]:=somework[dist, samp] that I want to return Null, or zero if passed a null distribution. I can't find a way to test for a difference between Null and Data distribution, none of ===, =!=, SameQ and == can identify qualify them.

How can I tell if I'm being passed a Null value to handle it correctly?

user4860