Code Monkey home page Code Monkey logo

Comments (2)

werty37 avatar werty37 commented on August 27, 2024

I was able to get the Jar from the releases page here:
https://github.com/lemmingapex/trilateration/releases

To import as a library in Processing, i did the following:

  1. Created a folder named "trilateration" in the default processing libraries folder. This will depend on your platform/os.
  2. Created a sub-folder "library" inside the "trilateration" folder.
  3. Copied the "trilateration-1.0.2.jar" inside the library folder
  4. Renamed "trilateration-1.0.2.jar" as "trilateration.jar"
  5. Create "library.properties" file in the "trilateration" folder.
  6. Copied the following contents into "library.properties" file.
name=Lemmingapex Trilateration
category=Math
authors=[Scott Wiedemann](http://lemmingapex.com/)
url=https://github.com/lemmingapex/trilateration
sentence=Solves a formulation of n-D space trilateration problem using a nonlinear least squares optimizer
paragraph=Solves a formulation of n-D space trilateration problem using a nonlinear least squares optimizer. Input: positions, distances; Output: centroid with geometry and error. Uses Levenberg-Marquardt algorithm from Apache Commons Math.
version=01
prettyVersion=1.0.2
lastUpdated=0
minRevision=0
maxRevision=0

You will need to add the following as imports. This, i think might change depending on your use case.

import org.apache.commons.math3.fitting.leastsquares.*;
import org.apache.commons.math3.fitting.leastsquares.LeastSquaresOptimizer.Optimum;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.RealVector;

import com.lemmingapex.trilateration.*;

You will also need Apache Commons Math library. Repeat the steps above to import Apache Commons Math as a library. I followed these instructions found on StackOverflow:
https://stackoverflow.com/a/43007929/1577171

Is there any way if i can compile Apache Math Commons and Lemmingapex Trilateration in a single Jar file?

from trilateration.

lemmingapex avatar lemmingapex commented on August 27, 2024

Glad you were able to resolve your issue.

from trilateration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.