The discreteW transform