mean
The average value
/apitalk/numpy/Mean/
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/apitalk/numpy/Mean/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MeanApi;
import java.io.File;
import java.util.*;
public class MeanApiExample {
public static void main(String[] args) {
MeanApi apiInstance = new MeanApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String list = list_example; // String | send your List like this 23,312,23,5,6,7,3
try {
Mean_response result = apiInstance.mean(apiecoKey, list);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MeanApi#mean");
e.printStackTrace();
}
}
}
import io.swagger.client.api.MeanApi;
public class MeanApiExample {
public static void main(String[] args) {
MeanApi apiInstance = new MeanApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String list = list_example; // String | send your List like this 23,312,23,5,6,7,3
try {
Mean_response result = apiInstance.mean(apiecoKey, list);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MeanApi#mean");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *list = list_example; // send your List like this 23,312,23,5,6,7,3
MeanApi *apiInstance = [[MeanApi alloc] init];
//
[apiInstance meanWith:apiecoKey
list:list
completionHandler: ^(Mean_response output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var NumpyApi = require('numpy_api');
var api = new NumpyApi.MeanApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var list = list_example; // {String} send your List like this 23,312,23,5,6,7,3
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.mean(apiecoKey, list, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class meanExample
{
public void main()
{
var apiInstance = new MeanApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API
var list = list_example; // String | send your List like this 23,312,23,5,6,7,3
try
{
//
Mean_response result = apiInstance.mean(apiecoKey, list);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MeanApi.mean: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\MeanApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$list = list_example; // String | send your List like this 23,312,23,5,6,7,3
try {
$result = $api_instance->mean($apiecoKey, $list);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MeanApi->mean: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MeanApi;
my $api_instance = WWW::SwaggerClient::MeanApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $list = list_example; # String | send your List like this 23,312,23,5,6,7,3
eval {
my $result = $api_instance->mean(apiecoKey => $apiecoKey, list => $list);
print Dumper($result);
};
if ($@) {
warn "Exception when calling MeanApi->mean: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.MeanApi()
apiecoKey = apiecoKey_example # String | apikey for use API
list = list_example # String | send your List like this 23,312,23,5,6,7,3
try:
#
api_response = api_instance.mean(apiecoKey, list)
pprint(api_response)
except ApiException as e:
print("Exception when calling MeanApi->mean: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Name | Description |
---|---|
List* |
String
send your List like this 23,312,23,5,6,7,3
Required
|