kalman filter

hi i was wondering if you can apply the kalman filter for an accelerometer only or does it have to be applied on acc and gyro. and if anyone knows of a good example on kalman filter please post the link here i would greatly appreciated it

thank you

Link: http://arduino.cc/forum/index.php/topic,58048.0.html