Rewrote the method. Refs #10028.
Solved some issues about log boundary. Refs #10028.
Corrected unit tests. Refs #10028.
Improved doc. Refs #10028.
Refs #10028.  Corrected an error for integer log.

The correction to unit test was made as well.
The documentation is modified for integer sample log.