-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Structure.interpolate to extrapolate (#3467)
* added parameter to allow Structure.interpolate to extrapolate beyond the end_structure * generalized extrapolation to end_amplitude, a cofactor of the distortion vector connecting structure to end_structure. This allows for reverse inter/extrapolation as well as partial inter/extrapolation. With this argument, 0 implies no distortion, 1 implies full distortion to end_structure (default), 0.5 implies distortion to a point halfway between structure and end_structure, and -1 implies full distortion in the opposite direction to end_structure. * added tests for new end_amplitude argument in Structure.interpolate() * added note about consistency between start and end structures to docstring -- ensuring consistency is required for obtaining useful results
- Loading branch information
1 parent
816cd3a
commit b35bda3
Showing
2 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters