Daubechies D4 Wavelet

No algorithm description given

This algorithm performs the Haar Wavelet Transform (or inverse transform) on a one dimensional signal. This algorithm expects a signal which whose length is divisible by 2, and will perform the transform for as long as the length can be divided by 2, while still being evenly divisible. Unless a max number of iterations is specified by an int before the input signal. Sample Input [1,[1,2,3,1,2,3,4,0]] Sample Output {"transform":[2.69901760217,2.34546421158,4.37205020963,1.8971764754999998,1.44888873942,-0.38822856765000013,2.4148145657,-0.64704761275],"i":1} Inverse Input [[5.65685424933524,2.1516122217235534e-13,1.8660254037497057,0.1339745962132557,1.44888873942,-0.38822856765000013,2.4148145657,-0.64704761275],3] 
 Invers Output [0.9999999999129452,1.9999999998886333,2.999999999875018,0.9999999999147142,1.9999999998771734,2.9999999998447104,3.999999999853363,-5.548117520959295e-11]

(no tags)

Cost Breakdown

0 cr
royalty per call
1 cr
usage per second
avg duration

Cost Calculator

API call duration (sec)
API calls
Estimated cost
per calls
for large volume discounts
For additional details on how pricing works, see Algorithmia pricing.

No permissions required

This algorithm does not require any special permissions.

To understand more about how algorithm permissions work, see the permissions documentation.

1. Type your input

2. See the result

Running algorithm...

3. Use this algorithm

curl -X POST -d '{{input | formatInput:"curl"}}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/thatguy2048/DaubechiesD4Wavelet/0.1.1
View cURL Docs
algo auth
algo run algo://thatguy2048/DaubechiesD4Wavelet/0.1.1 -d '{{input | formatInput:"cli"}}'
View CLI Docs
import (
  algorithmia "github.com/algorithmiaio/algorithmia-go"

input := {{input | formatInput:"go"}}

var client = algorithmia.NewClient("YOUR_API_KEY", "")
algo, _ := client.Algo("algo://thatguy2048/DaubechiesD4Wavelet/0.1.1")
resp, _ := algo.Pipe(input)
response := resp.(*algorithmia.AlgoResponse)
View Go Docs
import com.algorithmia.*;
import com.algorithmia.algo.*;

String input = "{{input | formatInput:"java"}}";
AlgorithmiaClient client = Algorithmia.client("YOUR_API_KEY");
Algorithm algo = client.algo("algo://thatguy2048/DaubechiesD4Wavelet/0.1.1");
AlgoResponse result = algo.pipeJson(input);
View Java Docs
import com.algorithmia._
import com.algorithmia.algo._

val input = {{input | formatInput:"scala"}}
val client = Algorithmia.client("YOUR_API_KEY")
val algo = client.algo("algo://thatguy2048/DaubechiesD4Wavelet/0.1.1")
val result = algo.pipeJson(input)
View Scala Docs
var input = {{input | formatInput:"javascript"}};
           .then(function(output) {
View Javascript Docs
using Algorithmia;

var input = "{{input | formatInput:"cs"}}";
var client = new Client("YOUR_API_KEY");
var algorithm = client.algo("algo://thatguy2048/DaubechiesD4Wavelet/0.1.1");
var response = algorithm.pipe<object>(input);
View .NET/C# Docs
var input = {{input | formatInput:"javascript"}};
           .then(function(response) {
View NodeJS Docs
import Algorithmia

input = {{input | formatInput:"python"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('thatguy2048/DaubechiesD4Wavelet/0.1.1')
print algo.pipe(input)
View Python Docs

input <- {{input | formatInput:"r"}}
client <- getAlgorithmiaClient("YOUR_API_KEY")
algo <- client$algo("thatguy2048/DaubechiesD4Wavelet/0.1.1")
result <- algo$pipe(input)$result
View R Docs
require 'algorithmia'

input = {{input | formatInput:"ruby"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('thatguy2048/DaubechiesD4Wavelet/0.1.1')
puts algo.pipe(input).result
View Ruby Docs
use algorithmia::Algorithmia;

let input = {{input | formatInput:"rust"}};
let client = Algorithmia::client("YOUR_API_KEY");
let algo = client.algo("thatguy2048/DaubechiesD4Wavelet/0.1.1");
let response = algo.pipe(input);
View Rust Docs
import Algorithmia

let input = "{{input | formatInput:"swift"}}";
let client = Algorithmia.client(simpleKey: "YOUR_API_KEY")
let algo = client.algo(algoUri: "thatguy2048/DaubechiesD4Wavelet/0.1.1") { resp, error in
View Swift Docs
  • {{comment.username}}