Code Monkey home page Code Monkey logo

needmat's Introduction

NeedMat, a Matlab Package for Spherical Needlets

Description

NeedMat provides a Matlab Package that implements fast spherical needlet transforms and fast spherical needlet evaluations. For more details on the spherical needlets and the package, please refer to the technical report: A Note on Spherical Needlets http://arxiv.org/abs/1508.05406.

Dependencies

NeedMat is developed on Matlab R2013a. It depends on the following three packages.

To ensure compatibility, the second package is already included in the repository.

Installation

  1. Download the codes by cloning the repository git clone https://github.com/minjay/NeedMat.
  2. Add the repository (including subfolders) to the search path of Matlab.

Main Functions (in the folder named core)

  1. A = get_A(B, j_min, j_max, theta, phi, n_dist) Compute the design matrix A, where A is an N-by-M matrix, N is the number of observations, and M is the number of spherical needlets. (theta, phi) gives the locations of these observations, and the spherical needlets are from frequency level j_min to j_max (inclusively). For fast computation, this function first evaluates the spherical needlets on a very fine grid and then interpolates the values for the query points.
  2. Nside = get_Nside(B, j) Compute Nside.
  3. j_max = get_j_max(B, l_max) Compute the maximal j, j_max.
  4. [dist, psi] = get_psi(B, j, k, theta, phi) A wrapper of the function spneedlet_eval_fast. It evaluates the spherical needlet with subscripts j and k at locations (theta, phi).
  5. map = inv_spharmonic_tran_naive(alm, theta, phi, l_max) A naive implementation of the inverse spherical harmonic transform.
  6. plot_needlets(B, j, k, res) Plot the spherical needlet with subscripts j and k.
  7. Y = spharmonic_eval(l, m, theta, phi) Evaluate the spherical harmonic with subscripts l and m at locations (theta, phi).
  8. alm = spharmonic_tran_irr(theta, phi, f, l_max) Spherical harmonic transform for irregularly spaced observations of function f at locations (theta, phi). It estimates the spherical harmonic coefficients empirically using the weights determined by the Voronoi diagram of these locations on the sphere.
  9. beta = spneedlet_tran(alm, l_max, B) Fast spherical needlet transform. It computes the needlet coefficients based on the spherical harmonic coefficients alm.

##Contact Please report any bugs to [email protected].

My research: http://anson.ucdavis.edu/~minjay.

needmat's People

Contributors

minjay avatar

Watchers

James Cloos avatar Amy T. Kim 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.