⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 license.txt

📁 c++实现的KNN库:建立高维度的K-d tree,实现K邻域搜索
💻 TXT
📖 第 1 页 / 共 2 页
字号:
----------------------------------------------------------------------The ANN Library (all versions) is provided under the terms andconditions of the GNU Lesser General Public Library, which is statedbelow.  It can also be found at:   http://www.gnu.org/copyleft/lesser.html----------------------------------------------------------------------GNU LESSER GENERAL PUBLIC LICENSEVersion 2.1, February 1999Copyright (C) 1991, 1999 Free Software Foundation, Inc.59 Temple Place, Suite 330, Boston, MA  02111-1307  USAEveryone is permitted to copy and distribute verbatim copiesof this license document, but changing it is not allowed.[This is the first released version of the Lesser GPL.  It also countsas the successor of the GNU Library Public License, version 2, hence theversion number 2.1.]PreambleThe licenses for most software are designed to take away your freedom toshare and change it. By contrast, the GNU General Public Licenses areintended to guarantee your freedom to share and change free software--tomake sure the software is free for all its users.This license, the Lesser General Public License, applies to somespecially designated software packages--typically libraries--of the FreeSoftware Foundation and other authors who decide to use it. You can useit too, but we suggest you first think carefully about whether thislicense or the ordinary General Public License is the better strategy touse in any particular case, based on the explanations below.When we speak of free software, we are referring to freedom of use, notprice. Our General Public Licenses are designed to make sure that youhave the freedom to distribute copies of free software (and charge forthis service if you wish); that you receive source code or can get it ifyou want it; that you can change the software and use pieces of it innew free programs; and that you are informed that you can do thesethings.To protect your rights, we need to make restrictions that forbiddistributors to deny you these rights or to ask you to surrender theserights. These restrictions translate to certain responsibilities for youif you distribute copies of the library or if you modify it.For example, if you distribute copies of the library, whether gratis orfor a fee, you must give the recipients all the rights that we gave you.You must make sure that they, too, receive or can get the source code.If you link other code with the library, you must provide completeobject files to the recipients, so that they can relink them with thelibrary after making changes to the library and recompiling it. And youmust show them these terms so they know their rights.We protect your rights with a two-step method: (1) we copyright thelibrary, and (2) we offer you this license, which gives you legalpermission to copy, distribute and/or modify the library.To protect each distributor, we want to make it very clear that there isno warranty for the free library. Also, if the library is modified bysomeone else and passed on, the recipients should know that what theyhave is not the original version, so that the original author'sreputation will not be affected by problems that might be introduced byothers.Finally, software patents pose a constant threat to the existence of anyfree program. We wish to make sure that a company cannot effectivelyrestrict the users of a free program by obtaining a restrictive licensefrom a patent holder. Therefore, we insist that any patent licenseobtained for a version of the library must be consistent with the fullfreedom of use specified in this license.Most GNU software, including some libraries, is covered by the ordinaryGNU General Public License. This license, the GNU Lesser General PublicLicense, applies to certain designated libraries, and is quite differentfrom the ordinary General Public License. We use this license forcertain libraries in order to permit linking those libraries intonon-free programs.When a program is linked with a library, whether statically or using ashared library, the combination of the two is legally speaking acombined work, a derivative of the original library. The ordinaryGeneral Public License therefore permits such linking only if the entirecombination fits its criteria of freedom. The Lesser General PublicLicense permits more lax criteria for linking other code with thelibrary.We call this license the "Lesser" General Public License because it doesLess to protect the user's freedom than the ordinary General PublicLicense. It also provides other free software developers Less of anadvantage over competing non-free programs. These disadvantages are thereason we use the ordinary General Public License for many libraries.However, the Lesser license provides advantages in certain specialcircumstances.For example, on rare occasions, there may be a special need to encouragethe widest possible use of a certain library, so that it becomes ade-facto standard. To achieve this, non-free programs must be allowed touse the library. A more frequent case is that a free library does thesame job as widely used non-free libraries. In this case, there islittle to gain by limiting the free library to free software only, so weuse the Lesser General Public License.In other cases, permission to use a particular library in non-freeprograms enables a greater number of people to use a large body of freesoftware. For example, permission to use the GNU C Library in non-freeprograms enables many more people to use the whole GNU operating system,as well as its variant, the GNU/Linux operating system.Although the Lesser General Public License is Less protective of theusers' freedom, it does ensure that the user of a program that is linkedwith the Library has the freedom and the wherewithal to run that programusing a modified version of the Library.The precise terms and conditions for copying, distribution andmodification follow. Pay close attention to the difference between a"work based on the library" and a "work that uses the library". Theformer contains code derived from the library, whereas the latter mustbe combined with the library in order to run.TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION0. This License Agreement applies to any software library or otherprogram which contains a notice placed by the copyright holder or otherauthorized party saying it may be distributed under the terms of thisLesser General Public License (also called "this License"). Eachlicensee is addressed as "you".A "library" means a collection of software functions and/or dataprepared so as to be conveniently linked with application programs(which use some of those functions and data) to form executables.The "Library", below, refers to any such software library or work whichhas been distributed under these terms. A "work based on the Library"means either the Library or any derivative work under copyright law:that is to say, a work containing the Library or a portion of it, eitherverbatim or with modifications and/or translated straightforwardly intoanother language. (Hereinafter, translation is included withoutlimitation in the term "modification".)"Source code" for a work means the preferred form of the work for makingmodifications to it. For a library, complete source code means all thesource code for all modules it contains, plus any associated interfacedefinition files, plus the scripts used to control compilation andinstallation of the library.Activities other than copying, distribution and modification are notcovered by this License; they are outside its scope. The act of runninga program using the Library is not restricted, and output from such aprogram is covered only if its contents constitute a work based on theLibrary (independent of the use of the Library in a tool for writingit). Whether that is true depends on what the Library does and what theprogram that uses the Library does.1. You may copy and distribute verbatim copies of the Library's completesource code as you receive it, in any medium, provided that youconspicuously and appropriately publish on each copy an appropriatecopyright notice and disclaimer of warranty; keep intact all the noticesthat refer to this License and to the absence of any warranty; anddistribute a copy of this License along with the Library.You may charge a fee for the physical act of transferring a copy, andyou may at your option offer warranty protection in exchange for a fee.2. You may modify your copy or copies of the Library or any portion ofit, thus forming a work based on the Library, and copy and distributesuch modifications or work under the terms of Section 1 above, providedthat you also meet all of these conditions:    a) The modified work must itself be a software library.    b) You must cause the files modified to carry prominent notices       stating that you changed the files and the date of any change.    c) You must cause the whole of the work to be licensed at no       charge to all third parties under the terms of this License.    d) If a facility in the modified Library refers to a function or a       table of data to be supplied by an application program that uses       the facility, other than as an argument passed when the facility       is invoked, then you must make a good faith effort to ensure that,       in the event an application does not supply such function or       table, the facility still operates, and performs whatever part of       its purpose remains meaningful.      (For example, a function in a library to compute square roots hasa purpose that is entirely well-defined independent of the application.Therefore, Subsection 2d requires that any application-supplied functionor table used by this function must be optional: if the application doesnot supply it, the square root function must still compute squareroots.)      These requirements apply to the modified work as a whole. Ifidentifiable sections of that work are not derived from the Library, andcan be reasonably considered independent and separate works inthemselves, then this License, and its terms, do not apply to thosesections when you distribute them as separate works. But when youdistribute the same sections as part of a whole which is a work based onthe Library, the distribution of the whole must be on the terms of thisLicense, whose permissions for other licensees extend to the entirewhole, and thus to each and every part regardless of who wrote it.      Thus, it is not the intent of this section to claim rights orcontest your rights to work written entirely by you; rather, the intentis to exercise the right to control the distribution of derivative orcollective works based on the Library.      In addition, mere aggregation of another work not based on theLibrary with the Library (or with a work based on the Library) on avolume of a storage or distribution medium does not bring the other workunder the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General PublicLicense instead of this License to a given copy of the Library. To dothis, you must alter all the notices that refer to this License, so thatthey refer to the ordinary GNU General Public License, version 2,instead of to this License. (If a newer version than version 2 of theordinary GNU General Public License has appeared, then you can specifythat version instead if you wish.) Do not make any other change in thesenotices.Once this change is made in a given copy, it is irreversible for thatcopy, so the ordinary GNU General Public License applies to allsubsequent copies and derivative works made from that copy.This option is useful when you wish to copy part of the code of the

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -