Making a terrain smoother with code

Hi guys.
Is there any possiblity at all to call a method that makes the terrain overall smoother or gives you the posibility to go over each of it’s sections in order to smooth it?

You can access the actual vertices of the terrain mesh and alter them as you like.