infers best-fit initial mass function from photometric data