Wrong license?
Juul opened this issue · 3 comments
Nice library but since you're porting from code that uses the Apache License 2.0 you probably aren't allowed to relicense under the MIT license.
The Java source file AkimaSplineInterpolator.java of the Apache Commons Math Library contains the following note:
This implementation is based on the Akima implementation in the CubicSpline
class in the Math.NET Numerics library.
The Math.NET Numerics Library uses the MIT license. CubicSpline.cs contains the original code for some of the interpolation functions.
I thought that when they can change the license from MIT to Apache with the port from C# to Java, I can change it back to MIT when I port from Java to TypeScript.
The two licenses seem to be "compatible":
-
Can I use Apache licensed source code and redistribute it as MIT license?
"If you create a modified or derived version of an Apache licensed work, you can distributed it under the license of your choice." -
Is the MIT license compatible with the Apache License Version 2 (APLv2)?
"Yes. In fact you can license the combined work under any license you choose." -
Apache license
"You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License."
Therefore I assume that I am allowed to relicense the (heavily modified) TypeScript port unter the MIT license.
I have added the Apache copyright and a NOTICE file. Thanks for your issue. I hope the licensing is sufficiently correct now.
Thank you for the quick reply and yes I believe all is in order now!