DERIVATION OF PIM SHAPE FUNCTION