Here's an interesting article about perceived loudness:
Can this be applied to sample libs? Maybe. We certainly want the samples to have the same perceived loudness across the keyboard.
These concepts can definitely be applied to mixing and mastering, as controlling loudness is a major part or the job.