Inkjet printhead performance enhancement by feedforward input design based on two-port modeling