Giter Site home page Giter Site logo

aniketp / periodic-orthogonal-projection Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 162 KB

Gradient descent approximation of orthogonal projection of a point on a convex periodic curve

MATLAB 100.00%
steepest-descent newton-raphson numerical-approximation

periodic-orthogonal-projection's Introduction

Orthogonal-Projection

Approximation of orthogonal projection of a point on a convex periodic curve, with period 1. The algorithm uses a generic combination of Steepest-descent method and Newton-Raphson (secant) method.

Made as the Course Project 1 for Numerical Analysis and Scientific Computing-1 (MTH308B).

Description

The problem statement does not emphasize of maximizing the efficiency. Hence, we can relax the restriction on the number of Newton-Raphson iterations. However, to avoid an infinite loop in case of a malicious input or a badly conditioned function, we limit the maximum number of iterations to 100000.

The step value in NR is so chosen as to heavily-optimize the algorithm for the case when ε ≈ exp(-14), hinted as a possible value by the instructor. Hence, it is reasonable for the algorithm to not be efficient for relatively larger values of ε. Thus to circumvent the worst case possibility, iteration limit was chosen to be a very large number, i.e 100000 instead of say, 5000.

Acknowledgement

@shivansh, for providing the implemention of previous version of the project. This project is built on top of that, taking into account the modification in the definition of accuracy, and the recommended approach of generalizing the algorithm for maximum curves, than over-optimizing for a specific curve.

periodic-orthogonal-projection's People

Contributors

aniketp avatar

Watchers

 avatar  avatar

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.